pkg check -d: Fix crash, should not close the db when reopened, it will be closed later
pkg check -d: Fix crash, should not close the db when reopened, it will be closed later

Fixes #814

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