add server state mutex to avoid state race condition
change > to >=. > will cause panic when resp.CommitIndex equals prevLogIndex
Merge pull request #45 from xiangli-cmu/server

add server state mutex to avoid state race condition