message_queue: data race fixup.