* Replaced constructor call with malloc and placement new in singletons for complete thread safety.