x86: clean up the APIC_DEST_LOGICAL logic