go: fix cgo clang support in devel.

Closes #23001.
Closes #23139.
References #23119.