md: add a mutex to synchronize idle and frozen in action_store()