science/geant4: Fix build error
Apply patch to fix typo in code builded in some systems that leads to
build errors.
This patch unbreaks build on main amd64, i386 and armv7.
See also: https://portsfallout.com/port/33546/
PR: 282761
MFH: 2024Q4
(cherry picked from commit 3f947d3a1d86212efcac3e1f4a53363ad4875f5f)