Geant4 private patch for multi-threading.

Ported from IB/CMSSW_7_2_X/next branch #930.