[PATCH OLK-6.6 v2 14/66] md: factor out a helper to sync mddev