this patch fixes two issues:

 1. output when trying to "pkg install" a locked package is shortened, it was redundant before.
 2. database is properly unlocked again, this caused trouble before when:
      a) trying to install a package which IS installed already
      b) trying to install a locked package
    in both cases, the error message was "pkg: sqlite: database repo-packagesite is locked"
Merge commit '270c99155988dbf82e91609a4762ecac909c1085' into lock-error-msg