Leadership transfer gaps (#487)
Leadership transfer gaps (#487)

* setLeadershipTransferInProgress before starting the transfer go routine to avoid a race.

* do not transition to follower state in a middle of a leadership transfer
hashicorp/raft,hashicorp/raft