x86/topology: Add a mechanism to track topology via APIC IDs