switch counter to gauge for buffered message count map
lock gauges when we update, since this is not atomic, and there's a race condition between poll and add