fix segfault (watchdog thread declares threads sick and tries to restart them while they are already being restarted)