md: Check MD_RECOVERY_RUNNING as well as ->sync_thread.