numa, cpumask: move numa_node_id default implementation to topology.h, fix