Metabolite transport through glial networks stabilizes the dynamics of learning