Warning · Test quality
A contender can write and delete a stage before returning the expected lock error without changing either count.
Impact
The test passes even though the contender wrote executable bytes without holding the lock.
Recommended action
Instrument stage creation and assert that the refused contender never attempts it.