Fix stupid deadlock in the logger.