md: improve the is_mddev_idle test fix