calling __pthread_set_self from a remote_thread