Bateman's dual system revisited: quantization, geometric phase and relation with the ground-state energy of the linear harmonic oscillator