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, and watchpool threads since the emulation cannot support deferred cancellation