Warning · Test quality
Impact
The test still passes if the contender writes a staged executable before attempting the lock, then deletes it and reports the expected lock error.
Recommended action
Record stage creation throughout the contested call and assert that no stage was created.