Thread safe DataFormats/DTRecHit

Fixed thread safety issues (non-const statics and const_cast) find by the static analyzer.