component/golang: Fix compilation (expired certificates in tests)

golang tests fail because of https://github.com/golang/go/issues/71077.
This patch backports https://github.com/golang/go/commit/d1d93129506c78cc8ee25644384286822d93c81a.
go1.22 and go1.23 include this fix already [1].

[1] https://go-review.googlesource.com/c/go/+/640315

/reported-by @romain
/reviewed-by @jerome @kirr @tomo
/reviewed-on !1713
28 jobs for master
in 0 seconds, using 0 compute credits, and was queued for 0 seconds