[PATCH openEuler-5.10 08/22] md: Fix undefined behaviour in is_mddev_idle