Fix race condition in quorum.go