fix race condition in Ganglia