Ensure same lock is used to read and write Dictionary in AppContext
Ensure same lock is used to read and write Dictionary in AppContext

Fixes #2727

ramarag/coreclr,sperling/coreclr,Godin/coreclr,russellhadley/coreclr,alexperovich/coreclr,KrzysztofCwalina/coreclr,mmitche/coreclr,James-Ko/coreclr,krk/coreclr,wkchoy74/coreclr,krk/coreclr,yeaicc/coreclr,Dmitry-Me/coreclr,JonHanna/coreclr,LLITCHEV/coreclr,wkchoy74/coreclr,dpodder/coreclr,Dmitry-Me/coreclr,James-Ko/coreclr,mokchhya/coreclr,YongseopKim/coreclr,krytarowski/coreclr,Dmitry-Me/coreclr,Lucrecious/coreclr,sjsinju/coreclr,sperling/coreclr,josteink/coreclr,cshung/coreclr,yeaicc/coreclr,josteink/coreclr,mmitche/coreclr,jhendrixMSFT/coreclr,neurospeech/coreclr,kyulee1/coreclr,parjong/coreclr,naamunds/coreclr,chuck-mitchell/coreclr,jamesqo/coreclr,sejongoh/coreclr,sagood/coreclr,KrzysztofCwalina/coreclr,yizhang82/coreclr,ragmani/coreclr,jamesqo/coreclr,yizhang82/coreclr,yizhang82/coreclr,cmckinsey/coreclr,YongseopKim/coreclr,vinnyrom/coreclr,wateret/coreclr,cydhaselton/coreclr,qiudesong/coreclr,alexperovich/coreclr,chuck-mitchell/coreclr,naamunds/coreclr,wkchoy74/coreclr,LLITCHEV/coreclr,LLITCHEV/coreclr,andschwa/coreclr,poizan42/coreclr,mokchhya/coreclr,mocsy/coreclr,benpye/coreclr,mocsy/coreclr,rartemev/coreclr,neurospeech/coreclr,parjong/coreclr,benpye/coreclr,gkhanna79/coreclr,SlavaRa/coreclr,vinnyrom/coreclr,qiudesong/coreclr,mmitche/coreclr,shahid-pk/coreclr,ZhichengZhu/coreclr,ZhichengZhu/coreclr,mokchhya/coreclr,roncain/coreclr,tijoytom/coreclr,bartdesmet/coreclr,gkhanna79/coreclr,yeaicc/coreclr,dpodder/coreclr,kyulee1/coreclr,ragmani/coreclr,KrzysztofCwalina/coreclr,qiudesong/coreclr,Godin/coreclr,ZhichengZhu/coreclr,kyulee1/coreclr,cydhaselton/coreclr,JosephTremoulet/coreclr,gkhanna79/coreclr,sejongoh/coreclr,Lucrecious/coreclr,josteink/coreclr,neurospeech/coreclr,poizan42/coreclr,LLITCHEV/coreclr,mocsy/coreclr,cmckinsey/coreclr,jhendrixMSFT/coreclr,sagood/coreclr,vinnyrom/coreclr,gkhanna79/coreclr,schellap/coreclr,wtgodbe/coreclr,mokchhya/coreclr,roncain/coreclr,ragmani/coreclr,JonHanna/coreclr,andschwa/coreclr,botaberg/coreclr,hseok-oh/coreclr,AlexGhiondea/coreclr,krytarowski/coreclr,mmitche/coreclr,jhendrixMSFT/coreclr,naamunds/coreclr,naamunds/coreclr,wateret/coreclr,gkhanna79/coreclr,martinwoodward/coreclr,sperling/coreclr,dasMulli/coreclr,chuck-mitchell/coreclr,LLITCHEV/coreclr,sjsinju/coreclr,yeaicc/coreclr,Dmitry-Me/coreclr,JonHanna/coreclr,dasMulli/coreclr,SlavaRa/coreclr,dpodder/coreclr,ruben-ayrapetyan/coreclr,bartdesmet/coreclr,bartonjs/coreclr,shahid-pk/coreclr,chuck-mitchell/coreclr,poizan42/coreclr,hseok-oh/coreclr,sejongoh/coreclr,schellap/coreclr,parjong/coreclr,alexperovich/coreclr,wtgodbe/coreclr,KrzysztofCwalina/coreclr,botaberg/coreclr,sjsinju/coreclr,kyulee1/coreclr,krk/coreclr,mokchhya/coreclr,botaberg/coreclr,mokchhya/coreclr,Dmitry-Me/coreclr,sagood/coreclr,qiudesong/coreclr,schellap/coreclr,krytarowski/coreclr,cydhaselton/coreclr,jamesqo/coreclr,pgavlin/coreclr,parjong/coreclr,russellhadley/coreclr,andschwa/coreclr,qiudesong/coreclr,ramarag/coreclr,cmckinsey/coreclr,jamesqo/coreclr,dasMulli/coreclr,AlexGhiondea/coreclr,cmckinsey/coreclr,chuck-mitchell/coreclr,Godin/coreclr,ruben-ayrapetyan/coreclr,naamunds/coreclr,jamesqo/coreclr,JosephTremoulet/coreclr,JosephTremoulet/coreclr,LLITCHEV/coreclr,pgavlin/coreclr,hseok-oh/coreclr,manu-silicon/coreclr,Godin/coreclr,SlavaRa/coreclr,bartonjs/coreclr,krk/coreclr,sperling/coreclr,sejongoh/coreclr,dasMulli/coreclr,bartdesmet/coreclr,mocsy/coreclr,martinwoodward/coreclr,dpodder/coreclr,sjsinju/coreclr,krytarowski/coreclr,swgillespie/coreclr,KrzysztofCwalina/coreclr,sejongoh/coreclr,rartemev/coreclr,andschwa/coreclr,AlexGhiondea/coreclr,yizhang82/coreclr,cydhaselton/coreclr,AlexGhiondea/coreclr,mocsy/coreclr,yizhang82/coreclr,rartemev/coreclr,bartonjs/coreclr,sagood/coreclr,wateret/coreclr,sperling/coreclr,bartonjs/coreclr,manu-silicon/coreclr,jhendrixMSFT/coreclr,mmitche/coreclr,Lucrecious/coreclr,russellhadley/coreclr,wtgodbe/coreclr,swgillespie/coreclr,James-Ko/coreclr,botaberg/coreclr,YongseopKim/coreclr,mskvortsov/coreclr,martinwoodward/coreclr,manu-silicon/coreclr,YongseopKim/coreclr,wkchoy74/coreclr,botaberg/coreclr,ramarag/coreclr,parjong/coreclr,neurospeech/coreclr,benpye/coreclr,LLITCHEV/coreclr,sejongoh/coreclr,yizhang82/coreclr,josteink/coreclr,stormleoxia/coreclr,wateret/coreclr,dasMulli/coreclr,ragmani/coreclr,wateret/coreclr,bartonjs/coreclr,kyulee1/coreclr,krk/coreclr,jhendrixMSFT/coreclr,wtgodbe/coreclr,mmitche/coreclr,wtgodbe/coreclr,Godin/coreclr,alexperovich/coreclr,ragmani/coreclr,Lucrecious/coreclr,ramarag/coreclr,YongseopKim/coreclr,alexperovich/coreclr,dpodder/coreclr,cshung/coreclr,ZhichengZhu/coreclr,dasMulli/coreclr,JonHanna/coreclr,AlexGhiondea/coreclr,chuck-mitchell/coreclr,andschwa/coreclr,roncain/coreclr,neurospeech/coreclr,ruben-ayrapetyan/coreclr,Lucrecious/coreclr,stormleoxia/coreclr,benpye/coreclr,sjsinju/coreclr,shahid-pk/coreclr,Lucrecious/coreclr,yeaicc/coreclr,Dmitry-Me/coreclr,sagood/coreclr,krytarowski/coreclr,stormleoxia/coreclr,russellhadley/coreclr,rartemev/coreclr,neurospeech/coreclr,gkhanna79/coreclr,cmckinsey/coreclr,mocsy/coreclr,schellap/coreclr,sejongoh/coreclr,ramarag/coreclr,ZhichengZhu/coreclr,tijoytom/coreclr,chuck-mitchell/coreclr,wtgodbe/coreclr,qiudesong/coreclr,kyulee1/coreclr,manu-silicon/coreclr,mskvortsov/coreclr,JosephTremoulet/coreclr,botaberg/coreclr,cshung/coreclr,bartonjs/coreclr,James-Ko/coreclr,roncain/coreclr,andschwa/coreclr,poizan42/coreclr,cshung/coreclr,naamunds/coreclr,hseok-oh/coreclr,tijoytom/coreclr,benpye/coreclr,bartdesmet/coreclr,sjsinju/coreclr,AlexGhiondea/coreclr,naamunds/coreclr,josteink/coreclr,jhendrixMSFT/coreclr,sperling/coreclr,roncain/coreclr,schellap/coreclr,KrzysztofCwalina/coreclr,cydhaselton/coreclr,manu-silicon/coreclr,yeaicc/coreclr,ramarag/coreclr,pgavlin/coreclr,bartdesmet/coreclr,shahid-pk/coreclr,martinwoodward/coreclr,russellhadley/coreclr,JosephTremoulet/coreclr,ragmani/coreclr,andschwa/coreclr,rartemev/coreclr,schellap/coreclr,pgavlin/coreclr,shahid-pk/coreclr,vinnyrom/coreclr,mocsy/coreclr,stormleoxia/coreclr,cmckinsey/coreclr,manu-silicon/coreclr,mokchhya/coreclr,ZhichengZhu/coreclr,YongseopKim/coreclr,wkchoy74/coreclr,bartdesmet/coreclr,Lucrecious/coreclr,benpye/coreclr,shahid-pk/coreclr,SlavaRa/coreclr,ruben-ayrapetyan/coreclr,vinnyrom/coreclr,cshung/coreclr,James-Ko/coreclr,russellhadley/coreclr,josteink/coreclr,ruben-ayrapetyan/coreclr,wateret/coreclr,tijoytom/coreclr,jhendrixMSFT/coreclr,poizan42/coreclr,swgillespie/coreclr,ruben-ayrapetyan/coreclr,wkchoy74/coreclr,tijoytom/coreclr,JonHanna/coreclr,ramarag/coreclr,krk/coreclr,mskvortsov/coreclr,benpye/coreclr,stormleoxia/coreclr,sperling/coreclr,hseok-oh/coreclr,parjong/coreclr,martinwoodward/coreclr,swgillespie/coreclr,SlavaRa/coreclr,vinnyrom/coreclr,martinwoodward/coreclr,josteink/coreclr,Godin/coreclr,schellap/coreclr,roncain/coreclr,pgavlin/coreclr,swgillespie/coreclr,swgillespie/coreclr,sagood/coreclr,martinwoodward/coreclr,cshung/coreclr,ZhichengZhu/coreclr,krytarowski/coreclr,swgillespie/coreclr,James-Ko/coreclr,shahid-pk/coreclr,jamesqo/coreclr,SlavaRa/coreclr,JonHanna/coreclr,bartdesmet/coreclr,Dmitry-Me/coreclr,tijoytom/coreclr,mskvortsov/coreclr,JosephTremoulet/coreclr,hseok-oh/coreclr,mskvortsov/coreclr,stormleoxia/coreclr,yeaicc/coreclr,poizan42/coreclr,cydhaselton/coreclr,manu-silicon/coreclr,mskvortsov/coreclr,KrzysztofCwalina/coreclr,dpodder/coreclr,pgavlin/coreclr,roncain/coreclr,bartonjs/coreclr,Godin/coreclr,vinnyrom/coreclr,alexperovich/coreclr,dasMulli/coreclr,stormleoxia/coreclr,rartemev/coreclr,cmckinsey/coreclr,wkchoy74/coreclr