Enable thread safety and libc++ thread safety annotations by default

This sets -Wthread-safety and
-D_LIBCPP_ENABLE_THREAD_SAFETY_ANNOTATIONS by default for all targets
targeting fuchsia. The flags are in the config
//build/config/fuchsia:thread_safety_annotations in the default configuration
set which can be removed by targets that aren't compatible with the
analysis.

Change-Id: I5f3c433f677399c61a7c0fec157ad389440fa10f
diff --git a/config/fuchsia/BUILD.gn b/config/fuchsia/BUILD.gn
index 077952c..23412f8 100644
--- a/config/fuchsia/BUILD.gn
+++ b/config/fuchsia/BUILD.gn
@@ -55,6 +55,7 @@
     ":compiler_sysroot",
     ":compiler_target",
     ":icf",
+    ":thread_safety_annotations",
     ":werror",
   ]
   if (use_ccache) {
@@ -93,10 +94,13 @@
 }
 
 config("mxio_config") {
-  libs = [
-    "mxio",
-  ]
+  libs = [ "mxio" ]
 }
 
 config("executable_config") {
 }
+
+config("thread_safety_annotations") {
+  cflags_cc = [ "-Wthread-safety" ]
+  defines = [ "_LIBCPP_ENABLE_THREAD_SAFETY_ANNOTATIONS" ]
+}