(pthread_exit): Set __pthread_last_event.