ISPN-2796 ConcurrentCacheManagerTest.testConcurrentGetCacheCalls hangs t...

...he test suite (randomly)

https://issues.jboss.org/browse/ISPN-2796

Please also integrate `t_2796_52` in branch `5.2.x`.

* 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.