Reorganize g_type_class_ref()
Reorganize g_type_class_ref()

Moves the first check out of the lock, as it's not required.

https://bugzilla.gnome.org/show_bug.cgi?id=585375

bratsche/glib,darren-clark/android_platform_external_bluetooth_glib,djdeath/glib,MathieuDuponchelle/glib,endlessm/glib,ahmedammar/platform_external_gst_glib,dicer/android_external_glib,djdeath/glib,pstglia/external-bluetooth-glib,01org/android-bluez-glib,gale320/glib,johne53/MB3Glib,lukasz-skalski/glib,ieei/glib-old-android,darren-clark/android_platform_external_bluetooth_glib,cention-sany/glib,01org/android-bluez-glib,darren-clark/android_platform_external_bluetooth_glib,justinkb/aosp-bluez.glib,ieei/glib,cosimoc/glib,Distrotech/glib,johne53/MB3Glib,mzabaluev/glib,iConsole/Console-OS_external_bluetooth_glib,ieei/glib-old-android,djdeath/glib,mzabaluev/glib,tamaskenez/glib,gale320/glib,mzabaluev/glib,endlessm/glib,pstglia/external-bluetooth-glib,bluez-android/glib,darren-clark/android_platform_external_bluetooth_glib,MathieuDuponchelle/glib,lukasz-skalski/glib,tamaskenez/glib,krichter722/glib,zsx/glib,zsx/glib,mzabaluev/glib,gale320/glib,ieei/glib-old-android,pstglia/platform-external-bluetooth-glib,tchakabam/glib,lukasz-skalski/glib,antono/glib,MathieuDuponchelle/glib,OpenInkpot-archive/iplinux-glib2.0,cosimoc/glib,tamaskenez/glib,lukasz-skalski/glib,tchakabam/glib,MathieuDuponchelle/glib,bluez-android/glib,pstglia/platform-external-bluetooth-glib,dicer/android_external_glib,endlessm/glib,pstglia/external-bluetooth-glib,johne53/MB3Glib,antono/glib,Distrotech/glib,dicer/android_external_glib,lukasz-skalski/glib,ieei/glib,cention-sany/glib,darren-clark/android_platform_external_bluetooth_glib,Distrotech/glib,pstglia/platform-external-bluetooth-glib,bratsche/glib,bratsche/glib,ieei/glib-old-android,ieei/glib,gale320/glib,pstglia/external-bluetooth-glib,01org/android-bluez-glib,justinkb/aosp-bluez.glib,justinkb/aosp-bluez.glib,zsx/glib,krichter722/glib,iConsole/Console-OS_external_bluetooth_glib,johne53/MB3Glib,tchakabam/glib,tchakabam/glib,gale320/glib,Distrotech/glib,dicer/android_external_glib,krichter722/glib,djdeath/glib,bluez-android/glib,ieei/glib,OpenInkpot-archive/iplinux-glib2.0,johne53/MB3Glib,cention-sany/glib,bratsche/glib,ieei/glib,iConsole/Console-OS_external_bluetooth_glib,tamaskenez/glib,cosimoc/glib,cention-sany/glib,tamaskenez/glib,endlessm/glib,bluez-android/glib,mzabaluev/glib,justinkb/aosp-bluez.glib,justinkb/aosp-bluez.glib,iConsole/Console-OS_external_bluetooth_glib,cosimoc/glib,johne53/MB3Glib,01org/android-bluez-glib,djdeath/glib,krichter722/glib,OpenInkpot-archive/iplinux-glib2.0,cention-sany/glib,01org/android-bluez-glib,OpenInkpot-archive/iplinux-glib2.0,zsx/glib,Distrotech/glib,tchakabam/glib,pstglia/platform-external-bluetooth-glib,bluez-android/glib,antono/glib,dicer/android_external_glib,MathieuDuponchelle/glib,ahmedammar/platform_external_gst_glib,krichter722/glib,iConsole/Console-OS_external_bluetooth_glib,cosimoc/glib,endlessm/glib,antono/glib,pstglia/platform-external-bluetooth-glib,ahmedammar/platform_external_gst_glib,OpenInkpot-archive/iplinux-glib2.0,ahmedammar/platform_external_gst_glib,pstglia/external-bluetooth-glib