Use latest rules_java (5.1.0) when Bzlmod is enabled
Fixes
module(name = "bazel_tools")
bazel_dep(name = "rules_cc", version = "0.0.1")
-bazel_dep(name = "rules_java", version = "5.0.0")
+bazel_dep(name = "rules_java", version = "5.1.0")
bazel_dep(name = "rules_proto", version = "4.0.0")
bazel_dep(name = "rules_python", version = "0.4.0")
