Duplicate a topology.
The entire topology structure as well as its objects are duplicated into a new one.
This is useful for keeping a backup while modifying a topology.
- Object userdata is not duplicated since hwloc does not know what it point to. The objects of both old and new topologies will point to the same userdata.