Warning · Test quality
Impact
The test still passes if the competing installer writes a stage before trying the lock, then deletes it and returns the expected lock error.
Recommended action
Record stage creation during the contested call and assert that it never occurs.