A note on closed geodesics for a class of non-compact Riemannian manifolds