pthread_exit is not supposed to affect cancellability