generic c version of __set_thread_area for archs where it works