golangci-lint runs `go vet` analyzers like copylocks, but only
reports issues on lines changed by a PR, so adding a mutex to an
existing struct can silently make old copies of it wrong.
This patch removes this responsibility from golangci-lint and moves
the analyzers into our custom vettool. It also adds `go vet` checks
for platform-specific code.
Updates #22645
Updates #22647
Updates #22652Fixes#22653
Change-Id: I28c890de2ac2744911a04e0704ebf47fca088a9e
Co-authored-by: Brad Fitzpatrick <[email protected]>
Signed-off-by: Simon Law <[email protected]>