x86/apic: Use non-atomic operations when possible