raft: make tick send out messages. all state machine actions should be taken inside step function.