Simple example:
bwrap --dev-bind / / --lock-file /tmp/my-lock bash
If I run this once, I'd expect a lock to be taken on the file, and the second instance to not start. Instead, running a second instance of the same command runs normally.
Am I missing something in how --lock-file work?