x86, ipi: Clean up safe_smp_processor_id() by using the cpu_has_apic() macro helper