“Going local” has been a mantra for people who want to make environmentally responsible choices about what they eat. But where food’s from might matter the most when calculating its carbon footprint.