x86: Implement thread_struct whitelist for hardened usercopy