Lock m_syncRoot on DoubleQueue.Count.  This is not documented as a thread-safe operation
Merge branch 'master' of ssh://opensimulator.org/var/git/opensim