x86: Fixes TLS bug causing kernel page faults