Synchronize 'Logger.logMessage' in case OS doesn't lock