If pthread_cancel is missing (Bionic/Android), emulate it using pthread_kill and pthread_exit
If pthread_cancel is missing/emulated, set asynchronous thread cancel type on stage, watchdog, watchpool, and longpoll threads since the emulation cannot support deferred cancellation