Add per class synchronization for logger initialization.