go: upstream patch for clang when cross-compiling

More properly fixes #22610.