statsd: protect access to the statsd's socket
to prevent erratic errors when using heavily multithreaded code.