create an stl-compatible wrapper around aos_sync mutexes and use it

Change-Id: I1f7ec0c5366b0ef985563225365db18dec8b70bd
diff --git a/aos/common/common.gyp b/aos/common/common.gyp
index 5a16c08..5264dab 100644
--- a/aos/common/common.gyp
+++ b/aos/common/common.gyp
@@ -300,5 +300,34 @@
         'die',
       ],
     },
+    {
+      'target_name': 'stl_mutex',
+      'type': 'static_library',
+      'sources': [
+        #'stl_mutex.h'
+      ],
+      'dependencies': [
+        '<(AOS)/linux_code/ipc_lib/ipc_lib.gyp:aos_sync',
+        '<(AOS)/build/aos.gyp:logging',
+      ],
+      'export_dependent_settings': [
+        '<(AOS)/linux_code/ipc_lib/ipc_lib.gyp:aos_sync',
+        '<(AOS)/build/aos.gyp:logging',
+      ],
+    },
+    {
+      'target_name': 'stl_mutex_test',
+      'type': 'executable',
+      'sources': [
+        'stl_mutex_test.cc',
+      ],
+      'dependencies': [
+        'stl_mutex',
+        '<(EXTERNALS):gtest',
+        'queue_testutils',
+        '<(AOS)/common/util/util.gyp:thread',
+        'die',
+      ],
+    },
   ],
 }