fix _batch_retry sql query in slaveconsumer