gthreadedresolver: fix hang on g_thread_pool_push() failure
gthreadedresolver: fix hang on g_thread_pool_push() failure

In resolve_sync function in gthreadedresolver.c, if g_thread_pool_push
fails due to thread creation failure, we are just simply appending the
data to the queue of work to do. After the failure, we might wait
indefinitely in g_cond_wait. In case of g_thread_pool_push failure,
propagate the error so that this function does not blocks forever in
case of failure.

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

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