Structural basis of glycogen biosynthesis regulation in bacteria