Made LoggingBackend thread-safe.