raft: move unstable related function to log_unstable.go

we should not care about the implementation when reading the api. api describes the behavior and expected output.