Fixed a race condition in mod_mam's start.