x86: move assignment of CPU_PREPARE before do_boot_cpu