Lock file during FTP transfer to prevent multiple instances of it being transferred at once