Change flags for opening a lock file. This prevents it from failing if the
file doesn't exist.