.......... [ZBX-8524] merge from trunk
.......PS. [ZBXNEXT-101] instead of using threads[0] as hardcoded configuration syncer process, iterate through threads array and compare process types