fix livelock happens when merging node restarted during the process.
Merge pull request #4156 from eminn/fix/livelock-during-split-brain

fix livelock happens when merging node restarted during the process.