Fix race condition
Fix race condition

As part of reviewing the code for #20, a possible race condition was
discovered -- after releasing the read lock, another goroutine could
acquire the write lock and mutate the guard variable. Fix by testing
the guard value again after acquiring the write lock.

cactus/go-statsd-client