raft: fix panic in putVarint; varint can take up to 10 bytes for a 64bit integer.