Make base::GetProcId() thread-safe on windows and drop w2k support
Make base::GetProcId() thread-safe on windows and drop w2k support

base::GetProcId() was previously not threadsafe since it relied upon threads observing reads between two different static variables in the same order that they were written without any explicit synchronization.  This probably is responsible for a small number of our startup crashes (http://crash/search?query=product:%22Chrome%22+base::GetProcIdViaGetProcessId).  This fixes the race by dropping w2k support and directly calling the function.

TEST=start up without crashing
BUG=none

Review URL: http://codereview.chromium.org/460063

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

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