exit with return code 1 if we have a lock error and are not run via cron, locking per file based on run path