ISPN-2796 ConcurrentCacheManagerTest.testConcurrentGetCacheCalls hangs the test suite (randomly)

* DefaultCacheManager.wireAndStartCache didn't open the cache latch if
  it failed to inject all dependencies, blocking all other threads.
* ComponentRegistry.getOrCreateComponent was not atomic if the component
  was cache-scoped and the factory was global-scoped.