TS-1819: guarantee hwloc initialization

The global hwloc handle was initialized as a side-effect. Use the
proper accessor API everywhere to guarantee that it is always
initialized correctly.