Thread safety cleanup

Make return values of a couple functions be
pointers to const instead of just pointers.
Eliminates some potential thread safety problems
reported by the clang static code analyzer.
Merge pull request #3290 from wddgit/threadSafetyFastSimulationTrackerSetup

FastSimulation -- Thread safety cleanup