don't call pkgdb_downgrade_lock with null db
don't call pkgdb_downgrade_lock with null db

en90/pkg,khorben/pkg,khorben/pkg,khorben/pkg,en90/pkg,skoef/pkg,Open343/pkg,junovitch/pkg,junovitch/pkg,skoef/pkg,Open343/pkg