Fix race condition between LogManager and Activator.

  - Fixes (in theory anyway) LOG4J2-373 in the case where the API may be loaded, but no provider has been loaded quite yet.