Remove calls to pthread_cancel(), pthread_setcanceltype() and pthread_atfork()