ART: Extend bionic TLS use to host bionic

Use __BIONIC__ instead of ART_TARGET_ANDROID for bionic TLS usage.

Bug: 138329277
Test: m test-art-host
Test: art/test/testrunner/run_build_test_target.py art-linux-bionic-x64
Change-Id: I7dc605c6700323303d9c9503d3aecc4fddef8d45
diff --git a/build/Android.bp b/build/Android.bp
index dd17a7c..9fec80c 100644
--- a/build/Android.bp
+++ b/build/Android.bp
@@ -132,6 +132,13 @@
                 "-Wmissing-noreturn",
             ],
         },
+        linux_bionic: {
+            header_libs: [
+                // We optimize Thread::Current() with a direct TLS access. This requires access to a
+                //  private Bionic header.
+                "bionic_libc_private_headers",
+            ],
+        },
         darwin: {
             enabled: false,
         },