Fix thread deadlocks when running metasync for more than 5 minutes.
Fix thread deadlocks when running metasync for more than 5 minutes.

Signed-off-by: Chris Larsen <83037b211e1d109d6858769a113e269c3139ffd3@euphoriaaudio.com>

johann8384/opentsdb,MadDogTechnology/opentsdb,ShefronYudy/opentsdb,andyflury/opentsdb,OpenTSDB/opentsdb,eswdd/opentsdb,OpenTSDB/opentsdb,alienth/opentsdb,andyflury/opentsdb,OpenTSDB/opentsdb,alienth/opentsdb,eswdd/opentsdb,ShefronYudy/opentsdb,MadDogTechnology/opentsdb,MadDogTechnology/opentsdb,johann8384/opentsdb