lockfile: unlock file if lockfile permissions cannot be adjusted