gatomic: use pthread mutexes instead of GMutex
gatomic: use pthread mutexes instead of GMutex

GStaticMutex makes use of atomic operations to initialise itself.  We
were using GStaticMutex from the emulated case of gatomic.  Use pthreads
directly to avoid unbounded recursion in this case.

justinkb/aosp-bluez.glib,iConsole/Console-OS_external_bluetooth_glib,MathieuDuponchelle/glib,pstglia/external-bluetooth-glib,cention-sany/glib,antono/glib,cosimoc/glib,johne53/MB3Glib,djdeath/glib,01org/android-bluez-glib,darren-clark/android_platform_external_bluetooth_glib,justinkb/aosp-bluez.glib,johne53/MB3Glib,01org/android-bluez-glib,endlessm/glib,justinkb/aosp-bluez.glib,endlessm/glib,tchakabam/glib,krichter722/glib,Distrotech/glib,01org/android-bluez-glib,01org/android-bluez-glib,lukasz-skalski/glib,pstglia/external-bluetooth-glib,bluez-android/glib,pstglia/platform-external-bluetooth-glib,iConsole/Console-OS_external_bluetooth_glib,lukasz-skalski/glib,endlessm/glib,gale320/glib,tchakabam/glib,gale320/glib,MathieuDuponchelle/glib,endlessm/glib,endlessm/glib,justinkb/aosp-bluez.glib,ieei/glib,MathieuDuponchelle/glib,ieei/glib,cosimoc/glib,ieei/glib,tamaskenez/glib,cention-sany/glib,gale320/glib,ieei/glib,antono/glib,krichter722/glib,djdeath/glib,djdeath/glib,cention-sany/glib,MathieuDuponchelle/glib,iConsole/Console-OS_external_bluetooth_glib,iConsole/Console-OS_external_bluetooth_glib,cention-sany/glib,antono/glib,krichter722/glib,gale320/glib,pstglia/platform-external-bluetooth-glib,tchakabam/glib,cosimoc/glib,01org/android-bluez-glib,darren-clark/android_platform_external_bluetooth_glib,pstglia/platform-external-bluetooth-glib,djdeath/glib,gale320/glib,johne53/MB3Glib,justinkb/aosp-bluez.glib,krichter722/glib,pstglia/external-bluetooth-glib,mzabaluev/glib,ieei/glib,darren-clark/android_platform_external_bluetooth_glib,pstglia/platform-external-bluetooth-glib,johne53/MB3Glib,pstglia/platform-external-bluetooth-glib,lukasz-skalski/glib,cosimoc/glib,tchakabam/glib,pstglia/external-bluetooth-glib,mzabaluev/glib,Distrotech/glib,lukasz-skalski/glib,darren-clark/android_platform_external_bluetooth_glib,tamaskenez/glib,tamaskenez/glib,Distrotech/glib,cosimoc/glib,johne53/MB3Glib,bluez-android/glib,cention-sany/glib,mzabaluev/glib,mzabaluev/glib,krichter722/glib,Distrotech/glib,djdeath/glib,tamaskenez/glib,johne53/MB3Glib,iConsole/Console-OS_external_bluetooth_glib,bluez-android/glib,bluez-android/glib,pstglia/external-bluetooth-glib,antono/glib,mzabaluev/glib,darren-clark/android_platform_external_bluetooth_glib,Distrotech/glib,tchakabam/glib,bluez-android/glib,lukasz-skalski/glib,tamaskenez/glib,MathieuDuponchelle/glib