Lock the upload directory so that another uploader can't start
uploading from it.