use __builtin_set_thread_pointer

Signed-off-by: Vineet Gupta <vgupta@synopsys.com>