x86: Introduce topology_core_cpumask()/topology_thread_cpumask()