raft: move unstable related function to log_unstable.go