Stop using deprecated go.new_library() and go.library_to_source() (#2180)

**What type of PR is this?**

Bug fix

**What package or component does this PR mostly affect?**

gazelle_binary()

**What does this PR do? Why is it needed?**

These have been replaced with new_go_info() some time last year.

**Which issues(s) does this PR fix?**

https://github.com/bazel-contrib/rules_go/pull/4030

**Other notes for review**
2 files changed