raft: flush the commit to fix a race in test
Merge pull request #1968 from xiang90/fix_raft_test

raft: flush the commit to fix a race in test