raft: copy ents to avoid races