Synchronise set in FMJ logging code to prevent a weird hang I saw trying to write a log line