Renamed `open_and_lock` to `open_with_lock`