Basic: use std::atomic instead of home-grown synch
Basic: use std::atomic instead of home-grown synch

SVN r271540 removed the LLVM atomics.  Use std::atomic instead.  NFC.

milseman/swift,sschiau/swift,harlanhaskins/swift,swiftix/swift,therealbnut/swift,apple/swift,felix91gr/swift,karwa/swift,gmilos/swift,russbishop/swift,jtbandes/swift,jopamer/swift,IngmarStein/swift,roambotics/swift,hughbe/swift,milseman/swift,gregomni/swift,CodaFi/swift,deyton/swift,deyton/swift,xwu/swift,swiftix/swift,felix91gr/swift,benlangmuir/swift,harlanhaskins/swift,arvedviehweger/swift,allevato/swift,aschwaighofer/swift,airspeedswift/swift,OscarSwanros/swift,djwbrown/swift,jckarter/swift,uasys/swift,atrick/swift,nathawes/swift,therealbnut/swift,felix91gr/swift,kperryua/swift,airspeedswift/swift,atrick/swift,shajrawi/swift,shajrawi/swift,manavgabhawala/swift,tinysun212/swift-windows,CodaFi/swift,amraboelela/swift,CodaFi/swift,therealbnut/swift,xedin/swift,apple/swift,tardieu/swift,parkera/swift,OscarSwanros/swift,jckarter/swift,aschwaighofer/swift,stephentyrone/swift,jopamer/swift,alblue/swift,sschiau/swift,ahoppen/swift,gribozavr/swift,return/swift,arvedviehweger/swift,jmgc/swift,codestergit/swift,huonw/swift,bitjammer/swift,jopamer/swift,return/swift,shahmishal/swift,gmilos/swift,airspeedswift/swift,shahmishal/swift,OscarSwanros/swift,jopamer/swift,austinzheng/swift,allevato/swift,CodaFi/swift,huonw/swift,kstaring/swift,jckarter/swift,gribozavr/swift,xedin/swift,felix91gr/swift,austinzheng/swift,parkera/swift,alblue/swift,frootloops/swift,ben-ng/swift,shajrawi/swift,modocache/swift,return/swift,frootloops/swift,shahmishal/swift,roambotics/swift,JaSpa/swift,jmgc/swift,shajrawi/swift,gmilos/swift,sschiau/swift,roambotics/swift,russbishop/swift,glessard/swift,codestergit/swift,return/swift,jtbandes/swift,ahoppen/swift,allevato/swift,JaSpa/swift,xwu/swift,tkremenek/swift,codestergit/swift,felix91gr/swift,tkremenek/swift,zisko/swift,tinysun212/swift-windows,allevato/swift,calebd/swift,JGiola/swift,Jnosh/swift,russbishop/swift,stephentyrone/swift,ahoppen/swift,IngmarStein/swift,frootloops/swift,manavgabhawala/swift,tkremenek/swift,modocache/swift,devincoughlin/swift,tkremenek/swift,devincoughlin/swift,airspeedswift/swift,russbishop/swift,tardieu/swift,lorentey/swift,kstaring/swift,devincoughlin/swift,stephentyrone/swift,roambotics/swift,allevato/swift,shahmishal/swift,benlangmuir/swift,tinysun212/swift-windows,benlangmuir/swift,lorentey/swift,gottesmm/swift,apple/swift,aschwaighofer/swift,gottesmm/swift,jtbandes/swift,parkera/swift,calebd/swift,amraboelela/swift,JGiola/swift,practicalswift/swift,tkremenek/swift,brentdax/swift,harlanhaskins/swift,karwa/swift,frootloops/swift,zisko/swift,return/swift,IngmarStein/swift,gregomni/swift,stephentyrone/swift,rudkx/swift,gregomni/swift,gribozavr/swift,nathawes/swift,tjw/swift,roambotics/swift,tjw/swift,gribozavr/swift,shahmishal/swift,austinzheng/swift,atrick/swift,shahmishal/swift,kperryua/swift,practicalswift/swift,deyton/swift,tinysun212/swift-windows,arvedviehweger/swift,kstaring/swift,swiftix/swift,sschiau/swift,danielmartin/swift,djwbrown/swift,hooman/swift,glessard/swift,hooman/swift,Jnosh/swift,glessard/swift,jckarter/swift,huonw/swift,swiftix/swift,devincoughlin/swift,shajrawi/swift,nathawes/swift,bitjammer/swift,gmilos/swift,uasys/swift,milseman/swift,ben-ng/swift,shajrawi/swift,parkera/swift,practicalswift/swift,bitjammer/swift,tjw/swift,zisko/swift,calebd/swift,jmgc/swift,JaSpa/swift,OscarSwanros/swift,practicalswift/swift,airspeedswift/swift,gribozavr/swift,harlanhaskins/swift,hooman/swift,Jnosh/swift,return/swift,amraboelela/swift,kstaring/swift,nathawes/swift,therealbnut/swift,aschwaighofer/swift,jtbandes/swift,OscarSwanros/swift,natecook1000/swift,codestergit/swift,xedin/swift,amraboelela/swift,therealbnut/swift,kperryua/swift,danielmartin/swift,jmgc/swift,karwa/swift,JGiola/swift,parkera/swift,ahoppen/swift,allevato/swift,JaSpa/swift,glessard/swift,zisko/swift,kperryua/swift,rudkx/swift,jmgc/swift,tinysun212/swift-windows,xedin/swift,lorentey/swift,uasys/swift,calebd/swift,hooman/swift,parkera/swift,swiftix/swift,return/swift,calebd/swift,gottesmm/swift,brentdax/swift,modocache/swift,sschiau/swift,calebd/swift,uasys/swift,jtbandes/swift,IngmarStein/swift,russbishop/swift,tjw/swift,therealbnut/swift,karwa/swift,parkera/swift,hooman/swift,ahoppen/swift,devincoughlin/swift,benlangmuir/swift,sschiau/swift,IngmarStein/swift,sschiau/swift,danielmartin/swift,milseman/swift,modocache/swift,lorentey/swift,tardieu/swift,huonw/swift,stephentyrone/swift,milseman/swift,deyton/swift,bitjammer/swift,xedin/swift,JaSpa/swift,deyton/swift,tjw/swift,airspeedswift/swift,shajrawi/swift,alblue/swift,shahmishal/swift,harlanhaskins/swift,danielmartin/swift,zisko/swift,atrick/swift,uasys/swift,gmilos/swift,xwu/swift,manavgabhawala/swift,hooman/swift,nathawes/swift,gribozavr/swift,djwbrown/swift,xedin/swift,tardieu/swift,OscarSwanros/swift,glessard/swift,gribozavr/swift,aschwaighofer/swift,xwu/swift,felix91gr/swift,lorentey/swift,codestergit/swift,amraboelela/swift,alblue/swift,lorentey/swift,ben-ng/swift,apple/swift,zisko/swift,glessard/swift,calebd/swift,huonw/swift,jopamer/swift,devincoughlin/swift,ben-ng/swift,tardieu/swift,jopamer/swift,IngmarStein/swift,airspeedswift/swift,swiftix/swift,jckarter/swift,gmilos/swift,tkremenek/swift,austinzheng/swift,tinysun212/swift-windows,xedin/swift,ben-ng/swift,hughbe/swift,harlanhaskins/swift,xwu/swift,gregomni/swift,tjw/swift,gmilos/swift,modocache/swift,devincoughlin/swift,benlangmuir/swift,natecook1000/swift,lorentey/swift,jmgc/swift,milseman/swift,djwbrown/swift,practicalswift/swift,natecook1000/swift,frootloops/swift,therealbnut/swift,practicalswift/swift,kperryua/swift,jckarter/swift,stephentyrone/swift,modocache/swift,karwa/swift,JGiola/swift,ben-ng/swift,allevato/swift,amraboelela/swift,djwbrown/swift,aschwaighofer/swift,kstaring/swift,gregomni/swift,huonw/swift,natecook1000/swift,Jnosh/swift,codestergit/swift,austinzheng/swift,deyton/swift,xedin/swift,tjw/swift,rudkx/swift,aschwaighofer/swift,jckarter/swift,djwbrown/swift,danielmartin/swift,manavgabhawala/swift,IngmarStein/swift,shahmishal/swift,nathawes/swift,atrick/swift,kperryua/swift,karwa/swift,bitjammer/swift,arvedviehweger/swift,natecook1000/swift,rudkx/swift,brentdax/swift,jtbandes/swift,hughbe/swift,jmgc/swift,kperryua/swift,harlanhaskins/swift,jopamer/swift,atrick/swift,amraboelela/swift,alblue/swift,Jnosh/swift,codestergit/swift,deyton/swift,gottesmm/swift,arvedviehweger/swift,roambotics/swift,arvedviehweger/swift,hughbe/swift,modocache/swift,alblue/swift,Jnosh/swift,austinzheng/swift,nathawes/swift,natecook1000/swift,kstaring/swift,jtbandes/swift,felix91gr/swift,brentdax/swift,manavgabhawala/swift,devincoughlin/swift,hughbe/swift,zisko/swift,karwa/swift,hughbe/swift,swiftix/swift,ben-ng/swift,gottesmm/swift,alblue/swift,CodaFi/swift,gribozavr/swift,lorentey/swift,frootloops/swift,sschiau/swift,frootloops/swift,tardieu/swift,CodaFi/swift,xwu/swift,benlangmuir/swift,ahoppen/swift,djwbrown/swift,shajrawi/swift,JGiola/swift,natecook1000/swift,kstaring/swift,stephentyrone/swift,gottesmm/swift,manavgabhawala/swift,russbishop/swift,JaSpa/swift,JGiola/swift,uasys/swift,tardieu/swift,tkremenek/swift,brentdax/swift,hooman/swift,karwa/swift,Jnosh/swift,danielmartin/swift,OscarSwanros/swift,danielmartin/swift,tinysun212/swift-windows,brentdax/swift,bitjammer/swift,hughbe/swift,parkera/swift,milseman/swift,huonw/swift,arvedviehweger/swift,gottesmm/swift,CodaFi/swift,xwu/swift,gregomni/swift,rudkx/swift,russbishop/swift,JaSpa/swift,rudkx/swift,bitjammer/swift,uasys/swift,apple/swift,apple/swift,practicalswift/swift,manavgabhawala/swift,brentdax/swift,austinzheng/swift,practicalswift/swift