[PATCH openEuler-1.0-LTS 1/2] md: Fix undefined behaviour in is_mddev_idle