CA-138452: Fix SR.lock implementation in cleanup.py