Upgrade golangci-lint to 1.50

After upgrading golangci-lint to v1.50.1 in Add golangci-lint asdf plugin to project (!839 - merged), we had a lot of new failures so this will require a bit more attention.

Job #3391962510 failed for d801aed3: