[PATCH OLK-6.6 02/57] md: factor out a helper to choose sync action from md_check_recovery()