raft: move unstable related function to log_unstable.go
raft: clean up
Merge pull request #1800 from xiang90/unstable

raft: move unstable related function to log_unstable.go