A bucket is released and re-locked after collecting each batch (batch size as configured by `collectionBatchSize` below), specifically because the case you describe is indeterministic.