x86: Set pic_mode only if local apic code is present