[sourcekit] Fix a lock inversion in editorReplaceText found by TSan
[sourcekit] Fix a lock inversion in editorReplaceText found by TSan

When triggering replaceText we were locking the EditorDocument then the
ASTProducer, but during AST building we do the reverse. This would cause
a deadlock if these two bits of code raced. Break the cycle by dropping
the editor lock when calling the ASTManager.

Thank you TSan!

xwu/swift,amraboelela/swift,alblue/swift,alblue/swift,ahoppen/swift,karwa/swift,practicalswift/swift,sschiau/swift,sschiau/swift,devincoughlin/swift,hooman/swift,tkremenek/swift,amraboelela/swift,parkera/swift,gregomni/swift,parkera/swift,xedin/swift,benlangmuir/swift,xwu/swift,airspeedswift/swift,xedin/swift,parkera/swift,benlangmuir/swift,allevato/swift,ahoppen/swift,lorentey/swift,apple/swift,stephentyrone/swift,stephentyrone/swift,harlanhaskins/swift,devincoughlin/swift,gribozavr/swift,lorentey/swift,sschiau/swift,jckarter/swift,jmgc/swift,rudkx/swift,xedin/swift,gregomni/swift,apple/swift,xedin/swift,nathawes/swift,allevato/swift,practicalswift/swift,harlanhaskins/swift,brentdax/swift,atrick/swift,rudkx/swift,tkremenek/swift,lorentey/swift,karwa/swift,xwu/swift,jmgc/swift,alblue/swift,practicalswift/swift,glessard/swift,nathawes/swift,alblue/swift,allevato/swift,devincoughlin/swift,shajrawi/swift,allevato/swift,xwu/swift,brentdax/swift,karwa/swift,lorentey/swift,CodaFi/swift,shajrawi/swift,stephentyrone/swift,aschwaighofer/swift,benlangmuir/swift,alblue/swift,CodaFi/swift,gribozavr/swift,austinzheng/swift,brentdax/swift,lorentey/swift,devincoughlin/swift,aschwaighofer/swift,austinzheng/swift,lorentey/swift,aschwaighofer/swift,devincoughlin/swift,benlangmuir/swift,JGiola/swift,nathawes/swift,austinzheng/swift,jmgc/swift,jckarter/swift,tkremenek/swift,shajrawi/swift,harlanhaskins/swift,sschiau/swift,danielmartin/swift,brentdax/swift,apple/swift,shahmishal/swift,tkremenek/swift,karwa/swift,airspeedswift/swift,JGiola/swift,CodaFi/swift,gregomni/swift,shahmishal/swift,hooman/swift,allevato/swift,CodaFi/swift,danielmartin/swift,JGiola/swift,stephentyrone/swift,gribozavr/swift,ahoppen/swift,JGiola/swift,airspeedswift/swift,gregomni/swift,roambotics/swift,tkremenek/swift,xwu/swift,practicalswift/swift,hooman/swift,CodaFi/swift,hooman/swift,atrick/swift,nathawes/swift,JGiola/swift,atrick/swift,austinzheng/swift,danielmartin/swift,karwa/swift,karwa/swift,devincoughlin/swift,glessard/swift,sschiau/swift,apple/swift,shajrawi/swift,alblue/swift,aschwaighofer/swift,shahmishal/swift,ahoppen/swift,ahoppen/swift,practicalswift/swift,aschwaighofer/swift,jckarter/swift,glessard/swift,jmgc/swift,gregomni/swift,danielmartin/swift,airspeedswift/swift,lorentey/swift,danielmartin/swift,jckarter/swift,parkera/swift,CodaFi/swift,jckarter/swift,practicalswift/swift,nathawes/swift,tkremenek/swift,tkremenek/swift,shahmishal/swift,danielmartin/swift,xedin/swift,aschwaighofer/swift,brentdax/swift,jmgc/swift,hooman/swift,rudkx/swift,shahmishal/swift,gribozavr/swift,stephentyrone/swift,sschiau/swift,glessard/swift,stephentyrone/swift,shahmishal/swift,benlangmuir/swift,apple/swift,jmgc/swift,brentdax/swift,aschwaighofer/swift,roambotics/swift,allevato/swift,rudkx/swift,gribozavr/swift,glessard/swift,shahmishal/swift,benlangmuir/swift,glessard/swift,shajrawi/swift,karwa/swift,alblue/swift,devincoughlin/swift,nathawes/swift,amraboelela/swift,allevato/swift,parkera/swift,xedin/swift,parkera/swift,ahoppen/swift,jckarter/swift,danielmartin/swift,airspeedswift/swift,roambotics/swift,austinzheng/swift,airspeedswift/swift,amraboelela/swift,harlanhaskins/swift,parkera/swift,shajrawi/swift,stephentyrone/swift,gribozavr/swift,austinzheng/swift,jckarter/swift,shajrawi/swift,nathawes/swift,lorentey/swift,parkera/swift,austinzheng/swift,rudkx/swift,hooman/swift,devincoughlin/swift,karwa/swift,xedin/swift,harlanhaskins/swift,roambotics/swift,CodaFi/swift,roambotics/swift,shahmishal/swift,atrick/swift,gregomni/swift,atrick/swift,xedin/swift,harlanhaskins/swift,amraboelela/swift,gribozavr/swift,shajrawi/swift,sschiau/swift,airspeedswift/swift,JGiola/swift,amraboelela/swift,practicalswift/swift,brentdax/swift,harlanhaskins/swift,xwu/swift,sschiau/swift,rudkx/swift,roambotics/swift,practicalswift/swift,xwu/swift,amraboelela/swift,jmgc/swift,apple/swift,hooman/swift,atrick/swift,gribozavr/swift