Fix pkg register complaining about shared libraries not found

Fixes: #656
Do not resume a jailed or chrooted pkg(8) upgrade

Fixes: #662