ACPI: processor: refactor internal map_x2apic_id()