A characterization of the uniform distribution on the circle by Stam inequality