Variational principle in kinetic theory: Repeated-ring approximation for the Lorentz gas