Fix a Raft snapshot bug, and fix raft_member_t destructor.