A subtle bug with Go's errgroup