Heme-binding enables allosteric modulation in an ancient TIM-barrel glycosidase