Metrics: syncronize parts where new keys are added the metrics hashes and the parts where the hashes are iterated [LOGSTASH-1171]