[PATCH openEuler-1.0-LTS 04/13] md: refactor idle/frozen_sync_thread()