Stdlib_unix: allow to block on locking a file instead of failing
What
This MR allow the with_lock utility function to block instead of failing while taking a lock.
Why
This simplifies the code and removes duplication in the rollup node. The blocking lock file mechanism is also needed by the evm node in !14173 (merged).