add a lock file to prevent overlap between cron iterations on the upload script