...G...... [ZBX-8455] improved synchronization between perfromance collector and agent threads