[desktop] Fix another deadlock fetching thrift clients
[desktop] Fix another deadlock fetching thrift clients

Wait until the queue has been filled with connections before adding
it to the pool. This is done last because any exceptions thrown
by the client construction could result in there being no
connections available in this pool. When `get_client` is called next,
it would skip this block because the key has a value, but then it
would deadlock later because there are no connections for it to
fetch from the pool.

pratikmallya/hue,cloudera/hue,sanjeevtripurari/hue,lumig242/Hue-Integration-with-CDAP,GitHublong/hue,kawamon/hue,fangxingli/hue,cloudera/hue,x303597316/hue,hdinsight/hue,lumig242/Hue-Integration-with-CDAP,yongshengwang/hue,vmax-feihu/hue,kawamon/hue,lumig242/Hue-Integration-with-CDAP,pratikmallya/hue,cloudera/hue,jounex/hue,Peddle/hue,MobinRanjbar/hue,Peddle/hue,jayceyxc/hue,todaychi/hue,jounex/hue,Peddle/hue,sanjeevtripurari/hue,cloudera/hue,xiangel/hue,fangxingli/hue,xq262144/hue,jjmleiro/hue,jounex/hue,Peddle/hue,yongshengwang/hue,jjmleiro/hue,xiangel/hue,ChenJunor/hue,cloudera/hue,kawamon/hue,rahul67/hue,Peddle/hue,GitHublong/hue,x303597316/hue,jjmleiro/hue,vmax-feihu/hue,cloudera/hue,hdinsight/hue,pratikmallya/hue,jayceyxc/hue,lumig242/Hue-Integration-with-CDAP,ChenJunor/hue,jjmleiro/hue,xq262144/hue,kawamon/hue,yongshengwang/hue,jounex/hue,yongshengwang/hue,mapr/hue,kawamon/hue,yoer/hue,jounex/hue,MobinRanjbar/hue,kawamon/hue,cloudera/hue,xiangel/hue,cloudera/hue,lumig242/Hue-Integration-with-CDAP,xiangel/hue,todaychi/hue,azureplus/hue,kawamon/hue,ChenJunor/hue,jounex/hue,jayceyxc/hue,rahul67/hue,mapr/hue,GitHublong/hue,fangxingli/hue,sanjeevtripurari/hue,jjmleiro/hue,cloudera/hue,ChenJunor/hue,mapr/hue,azureplus/hue,GitHublong/hue,vmax-feihu/hue,hdinsight/hue,vmax-feihu/hue,yoer/hue,xq262144/hue,sanjeevtripurari/hue,x303597316/hue,yoer/hue,fangxingli/hue,jayceyxc/hue,mapr/hue,xiangel/hue,ahmed-mahran/hue,ahmed-mahran/hue,MobinRanjbar/hue,ChenJunor/hue,azureplus/hue,mapr/hue,x303597316/hue,x303597316/hue,fangxingli/hue,pratikmallya/hue,kawamon/hue,GitHublong/hue,jayceyxc/hue,kawamon/hue,cloudera/hue,fangxingli/hue,kawamon/hue,yoer/hue,todaychi/hue,ChenJunor/hue,vmax-feihu/hue,Peddle/hue,GitHublong/hue,cloudera/hue,azureplus/hue,hdinsight/hue,xq262144/hue,x303597316/hue,GitHublong/hue,cloudera/hue,Peddle/hue,rahul67/hue,todaychi/hue,MobinRanjbar/hue,xiangel/hue,lumig242/Hue-Integration-with-CDAP,xq262144/hue,kawamon/hue,yongshengwang/hue,ahmed-mahran/hue,hdinsight/hue,xq262144/hue,jounex/hue,GitHublong/hue,pratikmallya/hue,cloudera/hue,hdinsight/hue,jayceyxc/hue,kawamon/hue,todaychi/hue,MobinRanjbar/hue,Peddle/hue,lumig242/Hue-Integration-with-CDAP,todaychi/hue,vmax-feihu/hue,vmax-feihu/hue,kawamon/hue,yoer/hue,jjmleiro/hue,rahul67/hue,ahmed-mahran/hue,cloudera/hue,Peddle/hue,mapr/hue,x303597316/hue,MobinRanjbar/hue,xq262144/hue,kawamon/hue,yoer/hue,fangxingli/hue,sanjeevtripurari/hue,todaychi/hue,MobinRanjbar/hue,jjmleiro/hue,kawamon/hue,ahmed-mahran/hue,rahul67/hue,hdinsight/hue,yongshengwang/hue,cloudera/hue,lumig242/Hue-Integration-with-CDAP,cloudera/hue,mapr/hue,sanjeevtripurari/hue,kawamon/hue,cloudera/hue,yongshengwang/hue,azureplus/hue,sanjeevtripurari/hue,fangxingli/hue,azureplus/hue,pratikmallya/hue,xiangel/hue,xq262144/hue,x303597316/hue,jayceyxc/hue,yongshengwang/hue,rahul67/hue,hdinsight/hue,xiangel/hue,kawamon/hue,kawamon/hue,lumig242/Hue-Integration-with-CDAP,jjmleiro/hue,azureplus/hue,azureplus/hue,yoer/hue,jayceyxc/hue,todaychi/hue,ahmed-mahran/hue,xq262144/hue,todaychi/hue,pratikmallya/hue,yoer/hue,jjmleiro/hue,ChenJunor/hue,ahmed-mahran/hue,ChenJunor/hue,ahmed-mahran/hue,MobinRanjbar/hue,cloudera/hue,rahul67/hue,sanjeevtripurari/hue,rahul67/hue,jounex/hue,jayceyxc/hue,pratikmallya/hue,vmax-feihu/hue