[PATCH 5.10 686/717] md/cluster: fix deadlock when node is doing resync job