Anisotropic Berry phase in the Dirac nodal-line semimetal ZrSiS: The effect of spin-orbit coupling