...G...PS. [ZBXNEXT-1263] added functions for TLS initialization and cleanup in threads and signal handlers