srw-test: moved thread-watchdog class outside timeout test function for older compilers happiness