Resolved some downloader threading issues.
Resolved some downloader threading issues.

- callbacks could be released between the callback existence if check and invocation
- could be nilled out in a background thread call to done, while being prepared for invocation on the main thread
- now making sure done is always performed on the main thread
- also added some related threading fixes and optimizations

goodheart/SDWebImage,DevSonw/SDWebImage,renssies/SDWebImage,awkward/SDWebImage,klundberg/SDWebImage,809848367/SDWebImage,kostassite/SDWebImage,Imgur/SDWebImage,Dongyafeiying/SDWebImage,iostalks/SDWebImage,FilmFlexMovies/SDWebImage,dcaunt/SDWebImage,adrianmacneil/SDWebImage,jiisd/SDWebImage,KeyJohn/SDWebImage,JohnJin007/SDWebImage,vincnetdu/SDWebImage,nickhingston/SDWebImage,623049115/SDWebImage,rayshen/SDWebImage,iheartradio/SDWebImage,doubleencore/SDWebImage,qingsong-xu/SDWebImage,fcx891231/SDWebImage,xianzhiliao/SDWebImage,D-cocoa/SDWebImage,zllbird/SDWebImage,Coeur/SDWebImage,ruaho/SDWebImage,mattjgalloway/SDWebImage,mayazhe/SDWebImage,ymsheng/SDWebImage,initlifeinc/SDWebImage,zhenxingliu/SDWebImage,sandyway/SDWebImage,iSqXIE/SDWebImage,getlight/SDWebImage,CoderJFCK/SDWebImage,Frntbac/SDWebImage,geoffmacd/SDWebImage,tempbottle/SDWebImage,wuxsoft/SDWebImage,KuPai32G/SDWebImage,iosnatarajan/SDWebImage,WeizeYu/SDWebImage,mrchenhao/SDWebImage,wantedly/SDWebImage,zhang-yawei/SDWebImage,wanglj7525/SDWebImage,imjerrybao/SDWebImage,Stubborn-Geek/SDWebImage,Meeca/SDWebImage,igroomgrim/SDWebImage,malandiwang/SDWebImage,muer2000/SDWebImage,fuzhiqiang1989/SDWebImage,dpettigrew/SDWebImage,flovilmart/SDWebImage,megawina/SDWebImage,wangmy/SDWebImage,twobitlabs/SDWebImage,Dcardcc/SDWebImage,donholly/SDWebImage,NachoSoto/SDWebImage,cogddo/SDWebImage,caoer/SDWebImage,j364960953/SDWebImage,XuXiaoJunChina/SDWebImage,coderShao/SDWebImage,bboyfeiyu/SDWebImage,wenxp/SDWebImage,princegoyal1987/SDWebImage,Derek316x/SDWebImage,yuanhoujun/SDWebImage,amyhametov/SDWebImage,Pingco/SDWebImage,rainkong/SDWebImage,HSFGitHub/SDWebImage,luwu121/SDWebImage,rzolin/SDWebImage,tokorom/SDWebImage,littledogboy/SDWebImage,dreampiggy/SDWebImage,sujeking/SDWebImage,awkward/SDWebImage,zongmumask/SDWebImage,leelili/SDWebImage,arnaudWasappli/SDWebImage,myell0w/SDWebImage,harishkashyap/SDWebImage,TerryAsh/SDWebImage,bespider/SDWebImage,GuitarPlayer-Ma/SDWebImage,maominghui/SDWebImage,izackp/SDWebImage,kimiWu/SDWebImage,wpstarnice/SDWebImage,elancom/SDWebImage,xswm1123/SDWebImage,bhlzlx/SDWebImage,zhuzhengwei/SDWebImage,seyfeddin/SDWebImage,GaryJuan/SDWebImage,d191562687/SDWebImage,scopely/SDWebImage,amitmalhotra/SDWebImage,awkward/SDWebImage,SureEdding/SDWebImage,mokey1422/SDWebImage,HannaLu/SDWebImage,inbilin-inc/SDWebImage,ShunzhiTang/SDWebImage,nuorder/SDWebImage,sdonly/SDWebImage,SampleLiao/SDWebImage,aefly/SDWebImage,coderGHubL/SDWebImage,VrasidasP/SDWebImage_Test,xiuxiuing/SDWebImage,Deyine/SDWebImage,bwised/SDWebImage,rs/SDWebImage,athiwatc/SDWebImage,timkoma/SDWebImage,iMinichrispy/SDWebImage,johnmyqin/SDWebImage,masterfego/SDWebImage,ForrestAlfred/SDWebImage,cochat/SDWebImage,altrooz/SDWebImage,280482431/SDWebImage,ioshger0125/SDWebImage,TrainingPair/SDWebImage,bb-coder/SDWebImage,odyth/SDWebImage,LGLee/SDWebImage,Jesee-jia/SDWebImage,dreampiggy/SDWebImage,kjiwu/SDWebImage,tangShunZhi/SDWebImage,nalindz/pulpfiction-SDWebImage,ferrior30/SDWebImage,Kingside/SDWebImage,PodRepo/SDWebImage,Kevin775263419/SDWebImage,SummerHF/SDWebImage,0xced/SDWebImage,Dcard/SDWebImage,yaoxiaoyong/SDWebImage,jianguozhang/SDWebImage,Eveian/SDWebImage,ywzw2013/SDWebImage,takeshineshiro/SDWebImage,rongl/SDWebImage,yunzhongyoulong/SDWebImage,OnTheWay1988/SDWebImage,HelloZhu/SDWebImage,AzenXu/SDWebImage,bhumi19/HelloWorld,yingongzheng123/SDWebImage,wentaozone/SDWebImage,balaprasanna/SDWebImage,Kekanto/SDWebImage,StoneLeon/SDWebImage,ackerman123/SDWebImage,Gaantz/SDWebImage,wang2code/SDWebImage,nickcheng/SDWebImage,smule/SDWebImage,zhaofeiyan/SDWebImage,appone/SDWebImage,zhzenghui/SDWebImage,ClassSix/SDWebImage,yyMlv/SDWebImage,once00/SDWebImage,ramoslin02/SDWebImage,dennispi/SDWebImage,smartscreensoftware/SDWebImage,bigyelow/SDWebImage,sarah89lee/SDWebImage,Alsen007/SDWebImage,dachaoisme/SDWebImage,ttgb/SDWebImage,zhang-yawei/ZYWSDWebImage,dreampiggy/SDWebImage,zakkhoyt/SDWebImage,howandhao/SDWebImage,CNMrGoat/SDWebImage,Monk428/SDWebImage,dahuilang1226/SDWebImage,gemwulee/SDWebImage,ddzcoeur/SDWebImage,chenhong/SDWebImage,SanjoDeundiak/SDWebImage,bpoplauschi/SDWebImage,wangpengfei1986/SDWebImage,wmed/SDWebImage,NghiaTranUIT/SDWebImage,xzenon/SDWebImage,tualatrix/SDWebImage,matti-h121/SDWebImage,zh-se/SDWebImage,brasbug/SDWebImage,Chren/SDWebImage,bgerstle/SDWebImage,Harvey4431/SDWebImage,raopc/SDWebImage,weiqiangqi/SDWebImage,jackywpy/SDWebImage,irealme/SDWebImage,NiuMengFei/SDWebImage,smyrgl/SDWebImage,sunzeboy/SDWebImage,King-of-Monkey/SDWebImage,rsidorakin/SDWebImage,keslcod/SDWebImage,ikesyo/SDWebImage,zilaiyedaren/SDWebImage,heroims/SDWebImage,shifujun/SDWebImage,wlsx/SDWebImage,kalsariyac/SDWebImage,9gag-open-source/SDWebImage,buleSky111/SDWebImage,Insfgg99x/SDWebImage,MrLoong/SDWebImage