ci: fix sg lint go hanging on generate failures
Created by: jhchabran
This fixes the hanging issue mentioned https://github.com/sourcegraph/sourcegraph/issues/35918
Test plan
Expected https://buildkite.com/sourcegraph/sourcegraph/builds/149733#0180fc10-2872-4389-bb18-e0c4f044ee4f failed and it did