On the period function in a class of generalized Lotka-Volterra systems