Gauging kinematical and internal symmetry groups for extended systems: the Galilean one-time and two-times harmonic oscillators