Injail pkg invocations related to cachedir.
This makes it possible to build pkgng packages from a host without pkg installed.
Also, this makes possible to use custom LOCALBASE (/usr/sbin/pkg from the host was
using the LOCALBASE environment variable which led to interesting problems when
LOCALBASE of the host was different from LOCALBASE in the jails)