resource: add support for hwloc 2.0
resource: add support for hwloc 2.0

hwloc 2.0 made some incompatible changes:
 - HWLOC_RESTRICT_FLAG_ADAPT_DISTANCES is gone with no replacement
 - NUMA nodes are no longer ancestors of processing units; instead they are uncles
 - the details of accessing a node's memory have changed

This patch adjusts to these changes while remaining compatible with
hwloc < 2.0.

Tests: run httpd on a numa machine with both versions of hwloc,
       verify that /proc/$/numa_maps shows correct numa binding.

syuu1228/seastar,dreamsxin/seastar,avikivity/seastar,dreamsxin/seastar,syuu1228/seastar,dreamsxin/seastar,scylladb/seastar,avikivity/seastar,scylladb/seastar,cloudius-systems/seastar,syuu1228/seastar,cloudius-systems/seastar,avikivity/seastar,cloudius-systems/seastar,scylladb/seastar