[sending file] now set up a lock
now clean() locks the file before the unlink