Use `lock(,,0)` instead of `lockIsFree && lock(,,1)` for non-blocking locks