x86: Fix APIC ID sizing bug on larger systems, clean up MAX_APICS confusion