[PATCH openEuler-1.0-LTS 062/149] md: factor out a mddev_find_locked helper from mddev_find