net: fix two small issues with DnsRRResolver
net: fix two small issues with DnsRRResolver

1) Cache hits resulted in a memory leak. RRResolverHandles didn't delete
themselves so, in the event of a cache hit, when a runnable method calling
Post() was used, they would never be deleted.

2) It was possible to delete a lock which was still locked, causing a possible
memory leak, depending on the implementation of pthread mutexes.

BUG=57456
TEST=net_unittests

http://codereview.chromium.org/3531006/show

git-svn-id: de016e52bd170d2d4f2344f9bf92d50478b649e0@61136 0039d316-1c4b-4281-b951-d872f2087c98

crosswalk-project/chromium-crosswalk-efl,keishi/chromium,PeterWangIntel/chromium-crosswalk,markYoungH/chromium.src,krieger-od/nwjs_chromium.src,keishi/chromium,Jonekee/chromium.src,timopulkkinen/BubbleFish,hgl888/chromium-crosswalk-efl,anirudhSK/chromium,axinging/chromium-crosswalk,PeterWangIntel/chromium-crosswalk,anirudhSK/chromium,littlstar/chromium.src,Chilledheart/chromium,hgl888/chromium-crosswalk-efl,axinging/chromium-crosswalk,mogoweb/chromium-crosswalk,junmin-zhu/chromium-rivertrail,Jonekee/chromium.src,zcbenz/cefode-chromium,PeterWangIntel/chromium-crosswalk,TheTypoMaster/chromium-crosswalk,dednal/chromium.src,mohamed--abdel-maksoud/chromium.src,krieger-od/nwjs_chromium.src,M4sse/chromium.src,bright-sparks/chromium-spacewalk,axinging/chromium-crosswalk,TheTypoMaster/chromium-crosswalk,dushu1203/chromium.src,anirudhSK/chromium,hgl888/chromium-crosswalk-efl,zcbenz/cefode-chromium,krieger-od/nwjs_chromium.src,PeterWangIntel/chromium-crosswalk,robclark/chromium,hgl888/chromium-crosswalk-efl,Fireblend/chromium-crosswalk,ondra-novak/chromium.src,dednal/chromium.src,M4sse/chromium.src,pozdnyakov/chromium-crosswalk,M4sse/chromium.src,krieger-od/nwjs_chromium.src,Jonekee/chromium.src,junmin-zhu/chromium-rivertrail,crosswalk-project/chromium-crosswalk-efl,crosswalk-project/chromium-crosswalk-efl,bright-sparks/chromium-spacewalk,fujunwei/chromium-crosswalk,rogerwang/chromium,timopulkkinen/BubbleFish,rogerwang/chromium,zcbenz/cefode-chromium,PeterWangIntel/chromium-crosswalk,mohamed--abdel-maksoud/chromium.src,mogoweb/chromium-crosswalk,ChromiumWebApps/chromium,bright-sparks/chromium-spacewalk,Jonekee/chromium.src,Fireblend/chromium-crosswalk,Jonekee/chromium.src,timopulkkinen/BubbleFish,markYoungH/chromium.src,ondra-novak/chromium.src,Just-D/chromium-1,TheTypoMaster/chromium-crosswalk,mohamed--abdel-maksoud/chromium.src,patrickm/chromium.src,nacl-webkit/chrome_deps,Chilledheart/chromium,pozdnyakov/chromium-crosswalk,chuan9/chromium-crosswalk,markYoungH/chromium.src,keishi/chromium,mogoweb/chromium-crosswalk,littlstar/chromium.src,Just-D/chromium-1,junmin-zhu/chromium-rivertrail,ltilve/chromium,markYoungH/chromium.src,ChromiumWebApps/chromium,Chilledheart/chromium,crosswalk-project/chromium-crosswalk-efl,patrickm/chromium.src,junmin-zhu/chromium-rivertrail,krieger-od/nwjs_chromium.src,ChromiumWebApps/chromium,hujiajie/pa-chromium,Just-D/chromium-1,rogerwang/chromium,Pluto-tv/chromium-crosswalk,bright-sparks/chromium-spacewalk,Jonekee/chromium.src,Just-D/chromium-1,junmin-zhu/chromium-rivertrail,M4sse/chromium.src,Pluto-tv/chromium-crosswalk,axinging/chromium-crosswalk,krieger-od/nwjs_chromium.src,mohamed--abdel-maksoud/chromium.src,jaruba/chromium.src,rogerwang/chromium,rogerwang/chromium,axinging/chromium-crosswalk,Pluto-tv/chromium-crosswalk,ltilve/chromium,Just-D/chromium-1,dednal/chromium.src,chuan9/chromium-crosswalk,anirudhSK/chromium,dednal/chromium.src,mohamed--abdel-maksoud/chromium.src,zcbenz/cefode-chromium,axinging/chromium-crosswalk,Fireblend/chromium-crosswalk,timopulkkinen/BubbleFish,TheTypoMaster/chromium-crosswalk,ChromiumWebApps/chromium,hgl888/chromium-crosswalk-efl,krieger-od/nwjs_chromium.src,nacl-webkit/chrome_deps,hujiajie/pa-chromium,pozdnyakov/chromium-crosswalk,patrickm/chromium.src,robclark/chromium,timopulkkinen/BubbleFish,hgl888/chromium-crosswalk-efl,mohamed--abdel-maksoud/chromium.src,nacl-webkit/chrome_deps,crosswalk-project/chromium-crosswalk-efl,dushu1203/chromium.src,anirudhSK/chromium,Chilledheart/chromium,jaruba/chromium.src,krieger-od/nwjs_chromium.src,dushu1203/chromium.src,jaruba/chromium.src,ondra-novak/chromium.src,ltilve/chromium,M4sse/chromium.src,mogoweb/chromium-crosswalk,axinging/chromium-crosswalk,hgl888/chromium-crosswalk,rogerwang/chromium,anirudhSK/chromium,nacl-webkit/chrome_deps,fujunwei/chromium-crosswalk,hujiajie/pa-chromium,hgl888/chromium-crosswalk,robclark/chromium,M4sse/chromium.src,TheTypoMaster/chromium-crosswalk,anirudhSK/chromium,patrickm/chromium.src,chuan9/chromium-crosswalk,dednal/chromium.src,markYoungH/chromium.src,keishi/chromium,pozdnyakov/chromium-crosswalk,dednal/chromium.src,Jonekee/chromium.src,fujunwei/chromium-crosswalk,hgl888/chromium-crosswalk-efl,littlstar/chromium.src,mogoweb/chromium-crosswalk,robclark/chromium,junmin-zhu/chromium-rivertrail,Pluto-tv/chromium-crosswalk,patrickm/chromium.src,Fireblend/chromium-crosswalk,mohamed--abdel-maksoud/chromium.src,ondra-novak/chromium.src,dushu1203/chromium.src,Chilledheart/chromium,timopulkkinen/BubbleFish,littlstar/chromium.src,keishi/chromium,markYoungH/chromium.src,junmin-zhu/chromium-rivertrail,Just-D/chromium-1,M4sse/chromium.src,jaruba/chromium.src,markYoungH/chromium.src,hgl888/chromium-crosswalk,zcbenz/cefode-chromium,dushu1203/chromium.src,jaruba/chromium.src,Fireblend/chromium-crosswalk,timopulkkinen/BubbleFish,rogerwang/chromium,robclark/chromium,ChromiumWebApps/chromium,markYoungH/chromium.src,robclark/chromium,keishi/chromium,jaruba/chromium.src,littlstar/chromium.src,patrickm/chromium.src,axinging/chromium-crosswalk,Jonekee/chromium.src,pozdnyakov/chromium-crosswalk,ltilve/chromium,mohamed--abdel-maksoud/chromium.src,pozdnyakov/chromium-crosswalk,junmin-zhu/chromium-rivertrail,jaruba/chromium.src,hujiajie/pa-chromium,Jonekee/chromium.src,zcbenz/cefode-chromium,anirudhSK/chromium,hgl888/chromium-crosswalk,krieger-od/nwjs_chromium.src,chuan9/chromium-crosswalk,mohamed--abdel-maksoud/chromium.src,zcbenz/cefode-chromium,patrickm/chromium.src,Pluto-tv/chromium-crosswalk,keishi/chromium,ltilve/chromium,timopulkkinen/BubbleFish,ondra-novak/chromium.src,fujunwei/chromium-crosswalk,mogoweb/chromium-crosswalk,Chilledheart/chromium,axinging/chromium-crosswalk,bright-sparks/chromium-spacewalk,zcbenz/cefode-chromium,PeterWangIntel/chromium-crosswalk,ChromiumWebApps/chromium,fujunwei/chromium-crosswalk,nacl-webkit/chrome_deps,ChromiumWebApps/chromium,krieger-od/nwjs_chromium.src,mogoweb/chromium-crosswalk,mohamed--abdel-maksoud/chromium.src,PeterWangIntel/chromium-crosswalk,bright-sparks/chromium-spacewalk,PeterWangIntel/chromium-crosswalk,axinging/chromium-crosswalk,Chilledheart/chromium,Just-D/chromium-1,robclark/chromium,hgl888/chromium-crosswalk,mogoweb/chromium-crosswalk,chuan9/chromium-crosswalk,Fireblend/chromium-crosswalk,timopulkkinen/BubbleFish,ltilve/chromium,nacl-webkit/chrome_deps,pozdnyakov/chromium-crosswalk,zcbenz/cefode-chromium,pozdnyakov/chromium-crosswalk,fujunwei/chromium-crosswalk,markYoungH/chromium.src,Chilledheart/chromium,chuan9/chromium-crosswalk,crosswalk-project/chromium-crosswalk-efl,dednal/chromium.src,dednal/chromium.src,anirudhSK/chromium,Just-D/chromium-1,mohamed--abdel-maksoud/chromium.src,rogerwang/chromium,dushu1203/chromium.src,timopulkkinen/BubbleFish,anirudhSK/chromium,crosswalk-project/chromium-crosswalk-efl,zcbenz/cefode-chromium,timopulkkinen/BubbleFish,dushu1203/chromium.src,pozdnyakov/chromium-crosswalk,ChromiumWebApps/chromium,fujunwei/chromium-crosswalk,mogoweb/chromium-crosswalk,ondra-novak/chromium.src,jaruba/chromium.src,robclark/chromium,PeterWangIntel/chromium-crosswalk,dednal/chromium.src,littlstar/chromium.src,rogerwang/chromium,jaruba/chromium.src,ltilve/chromium,keishi/chromium,ChromiumWebApps/chromium,anirudhSK/chromium,keishi/chromium,patrickm/chromium.src,hgl888/chromium-crosswalk,Fireblend/chromium-crosswalk,nacl-webkit/chrome_deps,Pluto-tv/chromium-crosswalk,bright-sparks/chromium-spacewalk,keishi/chromium,krieger-od/nwjs_chromium.src,nacl-webkit/chrome_deps,robclark/chromium,pozdnyakov/chromium-crosswalk,junmin-zhu/chromium-rivertrail,markYoungH/chromium.src,Just-D/chromium-1,junmin-zhu/chromium-rivertrail,chuan9/chromium-crosswalk,hujiajie/pa-chromium,Fireblend/chromium-crosswalk,hgl888/chromium-crosswalk-efl,Jonekee/chromium.src,ChromiumWebApps/chromium,hujiajie/pa-chromium,nacl-webkit/chrome_deps,axinging/chromium-crosswalk,dednal/chromium.src,markYoungH/chromium.src,M4sse/chromium.src,dushu1203/chromium.src,ondra-novak/chromium.src,TheTypoMaster/chromium-crosswalk,Chilledheart/chromium,Pluto-tv/chromium-crosswalk,hgl888/chromium-crosswalk-efl,M4sse/chromium.src,TheTypoMaster/chromium-crosswalk,M4sse/chromium.src,fujunwei/chromium-crosswalk,Fireblend/chromium-crosswalk,crosswalk-project/chromium-crosswalk-efl,rogerwang/chromium,hujiajie/pa-chromium,hujiajie/pa-chromium,ltilve/chromium,robclark/chromium,chuan9/chromium-crosswalk,mogoweb/chromium-crosswalk,bright-sparks/chromium-spacewalk,ondra-novak/chromium.src,nacl-webkit/chrome_deps,patrickm/chromium.src,littlstar/chromium.src,jaruba/chromium.src,zcbenz/cefode-chromium,bright-sparks/chromium-spacewalk,hgl888/chromium-crosswalk,M4sse/chromium.src,TheTypoMaster/chromium-crosswalk,hujiajie/pa-chromium,pozdnyakov/chromium-crosswalk,fujunwei/chromium-crosswalk,junmin-zhu/chromium-rivertrail,hujiajie/pa-chromium,keishi/chromium,ondra-novak/chromium.src,crosswalk-project/chromium-crosswalk-efl,dednal/chromium.src,ChromiumWebApps/chromium,dushu1203/chromium.src,ChromiumWebApps/chromium,Jonekee/chromium.src,hgl888/chromium-crosswalk-efl,anirudhSK/chromium,littlstar/chromium.src,hgl888/chromium-crosswalk,dushu1203/chromium.src,ltilve/chromium,chuan9/chromium-crosswalk,Pluto-tv/chromium-crosswalk,Pluto-tv/chromium-crosswalk,hujiajie/pa-chromium,TheTypoMaster/chromium-crosswalk,jaruba/chromium.src,hgl888/chromium-crosswalk,dushu1203/chromium.src,nacl-webkit/chrome_deps