make pthread_exit responsible for disabling cancellation