Add stop() to ThreadRunner, implemented using pthread_cancel, instead of
application-specific version in Watchdog.