[arch][x86] make sure lk is using the correct code segment at boot

Patch from Sergio Rodriguez. Thanks Sergio!