raft: add a newReady helper function