Gauge support and reentrancy protection

Added gauge support to match a recent change to the Etsy statsd code. Also added some protection against reentrancy on busy servers.