Fixed package lock

`tmpfs` is an int object containing the file descriptor of the temporary file.