Move setting the refcount to the end of the function
Move setting the refcount to the end of the function

This is a safety feature for when making it atomic later.

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

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