[PATCH OLK-6.6 v2 55/66] md: factor out helpers for different sync_action in md_do_sync()