x86: move apicid mappings to smpboot.c