Add an internal API for getting rpmdb home wrt chroot state, use it