go: build cgo with clang for devel versions.

Closes #23119.