Fixing bug to release lock when an record was not pruned
Fixing throttling in repair job and prune job