MDL-43483 mod_chat: Fixed race condition issues, including not useful logs.