Made DDValue thread safe

The DDValue is used by multiple threads inside OscarMTProducer while
the active geometry is being created. This modification removed some
global state and made the remaining global state thread safe.
Merge pull request #5289 from Dr15Jones/threadSafeDDValue

Made DDValue thread safe