The Python holder's HELD read is bounded, so a lock leaked on refusal fails the
subtest naming the leak instead of hanging CI. A test-only hook runs a closure
between try_with_exclusive_lock's pre-lock look and its try-lock, so a test puts
the link there and checks the refusal, the untouched target and the freed lock.
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>