Prevent crash in MMLog across multiple threads.