Geometric Phase of Spin-Orbit Interaction in Multigated Nanowires