Fix data race

Fix all data race in raft. 

https://drone.io/github.com/xiangli-cmu/raft/27