x/vuln/internal: add old build constraint syntax

When a project transitively depends on x/vuln/internal,
go1.16 is confused and fails with errors like

"//go:build comment without // +build comment"

Even when conditionally import x/vuln/internal only for go1.18+,
this error is unavoidable.
Let's wait a bit longer and help users who are stuck with old go.

Updates golang/go#51436

Change-Id: I22fce4c037bef3621800a7cca31d31938025078a
Reviewed-on: https://go-review.googlesource.com/c/vuln/+/449175
TryBot-Result: Gopher Robot <gobot@golang.org>
Reviewed-by: Bryan Mills <bcmills@google.com>
Run-TryBot: Hyang-Ah Hana Kim <hyangah@gmail.com>
diff --git a/cmd/govulncheck/main_testmode.go b/cmd/govulncheck/main_testmode.go
index 0ac803b..f616b97 100644
--- a/cmd/govulncheck/main_testmode.go
+++ b/cmd/govulncheck/main_testmode.go
@@ -3,6 +3,7 @@
 // license that can be found in the LICENSE file.
 
 //go:build testmode
+// +build testmode
 
 package main
 
diff --git a/internal/goversion.go b/internal/goversion.go
index 1475992..c64f4b9 100644
--- a/internal/goversion.go
+++ b/internal/goversion.go
@@ -3,6 +3,7 @@
 // license that can be found in the LICENSE file.
 
 //go:build !testmode
+// +build !testmode
 
 package internal
 
diff --git a/internal/goversion_testmode.go b/internal/goversion_testmode.go
index 09c8964..e84c4d8 100644
--- a/internal/goversion_testmode.go
+++ b/internal/goversion_testmode.go
@@ -3,6 +3,7 @@
 // license that can be found in the LICENSE file.
 
 //go:build testmode
+// +build testmode
 
 package internal