[PATCH OLK-6.6 15/57] md: factor out a helper from mddev_put()