MODULES:WATCHDOG  Added a primitive watchdog function for threads.