A serine-folate metabolic unit controls resistance and tolerance of infection