PackageDb: Explicitly unlock package database before closing