[server][ArmNagiosNDOUtils] Use synchronizeThreadExit() to make the destructor clean.