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