x86: make apic_* operations inline functions