Fix missing //apex_available:platform on some libs.

They're used from platform libs, e.g. libandroid_runtime.

Also changed the *_lazy shims to use the more precise runtime_libs for
their dlopen dependencies.

Test: m
Bug: 133140750
Change-Id: I4a3f1af6155b414aed4aac7a28365177ea1ae716
diff --git a/libnativebridge/Android.bp b/libnativebridge/Android.bp
index dc53634..22349bb 100644
--- a/libnativebridge/Android.bp
+++ b/libnativebridge/Android.bp
@@ -76,10 +76,13 @@
         "//frameworks/native/opengl/libs",
         "//frameworks/native/vulkan/libvulkan",
     ],
+    apex_available: [
+        "//apex_available:platform",
+    ],
 
     host_supported: false,
     srcs: ["native_bridge_lazy.cc"],
-    required: ["libnativebridge"],
+    runtime_libs: ["libnativebridge"],
     shared_libs: ["liblog"],
 }
 
diff --git a/libnativeloader/Android.bp b/libnativeloader/Android.bp
index 54c6005..9b7ccaf 100644
--- a/libnativeloader/Android.bp
+++ b/libnativeloader/Android.bp
@@ -77,9 +77,12 @@
         "//frameworks/native/opengl/libs",
         "//frameworks/native/vulkan/libvulkan",
     ],
+    apex_available: [
+        "//apex_available:platform",
+    ],
     host_supported: false,
     srcs: ["native_loader_lazy.cpp"],
-    required: ["libnativeloader"],
+    runtime_libs: ["libnativeloader"],
     shared_libs: ["liblog"],
 }