resolve race condition in maxGauge (#5647)
resolve race condition in maxGauge (#5647)

* resolve race condition in maxGauge

Signed-off-by: Dmitry Shmulevich <f9008042f6e8a0fcb617c77050a0280d3f6e7399@sysdig.com>

alileza/prometheus,prometheus/prometheus,Gouthamve/prometheus,prometheus/prometheus,alileza/prometheus,alileza/prometheus,alileza/prometheus,Gouthamve/prometheus,alileza/prometheus,keegancsmith/prometheus,keegancsmith/prometheus,keegancsmith/prometheus,prometheus/prometheus,Gouthamve/prometheus,GoogleCloudPlatform/prometheus,prometheus/prometheus,kangwoo/prometheus,GoogleCloudPlatform/prometheus,kangwoo/prometheus,kangwoo/prometheus,GoogleCloudPlatform/prometheus,keegancsmith/prometheus,GoogleCloudPlatform/prometheus,Gouthamve/prometheus,GoogleCloudPlatform/prometheus,kangwoo/prometheus,prometheus/prometheus,keegancsmith/prometheus