Changed package lock related functions to no-ops on unsupported and to always return the package
Added unlock to delete-hook to make sure deletion works
Changed to establish locks on interface packages