getwork protocol fix

The watchdog thread needs threadHearthBeat (which is working in XPT mode, but not in 'getwork' mode). This should fix that problem.