[PATCH openEuler-22.03-LTS-SP1 08/22] md: refactor idle/frozen_sync_thread()