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.