Add retries to datastore transaction batches.