Keep a reference to the MutableMetric and update it via that instead of the metricsregistry

MetricsRegistry.add only lets you update MutableStat and will fail on anything else. Helpful.