Maintain the locks until we can see that the batches have been updated in the index