fix takesnapshot
Merge https://github.com/goraft/raft into upstream
Merge pull request #114 from coreos/upstream

fix snapshot