fix double master etc. when cluster heals after split brain
merge from github 6.0