Fix r_cons_flush race condition in rabin2