osbase/build: ignore race setting in kernel build

This makes the kernel config the same between builds with and without
race. This should speed up CI when the kernel needs building.

Before:
bazel cquery "deps(//...) intersect //osbase/test/ktest:linux-testing"
//osbase/test/ktest:linux-testing (090513b)
bazel cquery --config race "deps(//...) intersect //osbase/test/ktest:linux-testing"
//osbase/test/ktest:linux-testing (b7a4847)

After:
bazel cquery --config race "deps(//...) intersect //osbase/test/ktest:linux-testing"
//osbase/test/ktest:linux-testing (090513b)

Change-Id: Idf9d9503c07053cc34edfe855fb7042d28655683
Reviewed-on: https://review.monogon.dev/c/monogon/+/4159
Tested-by: Jenkins CI
Reviewed-by: Tim Windelschmidt <tim@monogon.tech>
diff --git a/osbase/build/def.bzl b/osbase/build/def.bzl
index 66644b4..7a6fbd7 100644
--- a/osbase/build/def.bzl
+++ b/osbase/build/def.bzl
@@ -23,6 +23,7 @@
     # Force-setting them to a stable value forces the build configuration
     # to a stable hash.
     # See the transition's comment block for more information.
+    "@io_bazel_rules_go//go/config:race": False,
     "@io_bazel_rules_go//go/config:pure": False,
     "@io_bazel_rules_go//go/config:static": False,