x86/asm: Rewrite sync_core() to use IRET-to-self