raft: move unstable related function to log_unstable.go

no. i do not like that idea. i want to return the index of the exact entry that exists in the unstable.