Fixed package lock

`tmpfs` is an int object containing the file descriptor of the temporary
file.
Merge pull request #19 from flavio/fix_package_locking

Fixed package lock