raft: make unstable.entries immutable; copy the entries at bad path