Thread-safe changes: change clone()->get() to clone()->release(); put const for GeometricDetPtr in all build methods, etc