ElectronPhotonFourMomentumCorrection: Fix thread-safety checker warnings.
requested to merge ssnyder/athena:thread-new.ElectronPhotonFourMomentumCorrection-20221104 into master
Fix some new thread-safety checker warnings: redundant casts / ownership manipulation.