fix: used to deadlock when demoting a master while catching up by snapshot
Summary
- fix: used to deadlock when demoting a master while catching up by snapshot
Fixes this flaky test https://git.picodata.io/picodata/picodata/picodata/-/jobs/154856
- Close #379 (closed)
- Changes should be cherry-picked to 24.2: no
Edited by Yaroslav Dynnikov