The thread pool that CA runs on must be shut down for xpcom-shutdown-threads. The MockRegistrar was illegally creating additional instances of ContentAnalysis, in an attempt to fill in the (unneeded) _genuine property. This adds a registerEx method to allow mocking without duplicating the service, so that we don't have to make CA thread shutdown safe for "anytime" instead of just for xpcom-shutdown-threads. MockRegistrar.registerEx is newly added to avoid updating all MockRegistrar.register call sites. Differential Revision: https://phabricator.services.mozilla.com/D242865