Optimize GraphiteWriter::SendMetric.

Fixes #5037