Graphite writer: Concurrency

* Avoid concurrency issues when sending the measures.