Without this, the logging on the stats thread would race with the log initialization on the main thread.