Log Message: After a long search, I finally found out where the message "NOTE: Couldn't lock the package database." came from. It was Solaris' pkgchk.