use folly::Baton in waitWithSemaphore
use folly::Baton in waitWithSemaphore

Test Plan:
fbconfig -r folly/wangle && fbmake runtests -j32

Reviewed By: lucian@fb.com

Subscribers: sdoroshenko, fugalh, njormrod

FB internal diff: D1525044

Tasks: 2680246

Blame Revision: D1358230

tempbottle/folly,SeanRBurton/folly,cppfool/folly,guker/folly,SammyK/folly,mqeizi/folly,raphaelamorim/folly,KSreeHarsha/folly,floxard/folly,Hincoin/folly,tomhughes/folly,leolujuyi/folly,lifei/folly,cole14/folly,zhiweicai/folly,brunomorishita/folly,SeanRBurton/folly,hongliangzhao/folly,cppfool/folly,shaobz/folly,leolujuyi/folly,loversInJapan/folly,sakishum/folly,bowlofstew/folly,gaoyingie/folly,PPC64/folly,clearlylin/folly,gaoyingie/folly,chjp2046/folly,SammyK/folly,CJstar/folly,floxard/folly,PPC64/folly,lifei/folly,renyinew/folly,Hincoin/folly,doctaweeks/folly,doctaweeks/folly,upsoft/folly,loversInJapan/folly,zhiweicai/folly,alexst07/folly,rklabs/folly,rklabs/folly,loverszhaokai/folly,cppfool/folly,kernelim/folly,fw1121/folly,colemancda/folly,KSreeHarsha/folly,alexst07/folly,raphaelamorim/folly,loverszhaokai/folly,upsoft/folly,gaoyingie/folly,project-zerus/folly,facebook/folly,facebook/folly,PoisonBOx/folly,kernelim/folly,chjp2046/folly,theiver9827/folly,yangjin-unique/folly,xzmagic/folly,ykarlsbrun/folly,chjp2046/folly,floxard/folly,gaoyingie/folly,reddit/folly,sakishum/folly,stonegithubs/folly,gaoyingie/folly,xzmagic/folly,yangjin-unique/folly,clearlinux/folly,yangjin-unique/folly,tempbottle/folly,renyinew/folly,lifei/folly,wildinto/folly,clearlinux/folly,wildinto/folly,hongliangzhao/folly,yangjin-unique/folly,sonnyhu/folly,tomhughes/folly,brunomorishita/folly,KSreeHarsha/folly,SeanRBurton/folly,SeanRBurton/folly,nickhen/folly,ykarlsbrun/folly,xzmagic/folly,mqeizi/folly,clearlylin/folly,theiver9827/folly,stonegithubs/folly,cppfool/folly,gavioto/folly,sakishum/folly,project-zerus/folly,nickhen/folly,colemancda/folly,ykarlsbrun/folly,ykarlsbrun/folly,bsampath/folly,leolujuyi/folly,facebook/folly,fw1121/folly,loverszhaokai/folly,brunomorishita/folly,rklabs/folly,mqeizi/folly,colemancda/folly,bowlofstew/folly,gavioto/folly,cppfool/folly,juniway/folly,bobegir/folly,PPC64/folly,bowlofstew/folly,guker/folly,Hincoin/folly,zhiweicai/folly,Orvid/folly,constantine001/folly,constantine001/folly,alexst07/folly,clearlinux/folly,tempbottle/folly,shaobz/folly,constantine001/folly,tomhughes/folly,raphaelamorim/folly,Hincoin/folly,Eagle-X/folly,romange/folly,hongliangzhao/folly,project-zerus/folly,bobegir/folly,sonnyhu/folly,doctaweeks/folly,renyinew/folly,gavioto/folly,charsyam/folly,bsampath/folly,lifei/folly,upsoft/folly,wildinto/folly,leolujuyi/folly,facebook/folly,loversInJapan/folly,hongliangzhao/folly,chjp2046/folly,arg0/folly,juniway/folly,sakishum/folly,leolujuyi/folly,charsyam/folly,loverszhaokai/folly,constantine001/folly,Orvid/folly,reddit/folly,tempbottle/folly,gavioto/folly,bikong2/folly,brunomorishita/folly,cole14/folly,sonnyhu/folly,fw1121/folly,cole14/folly,project-zerus/folly,reddit/folly,bobegir/folly,sakishum/folly,upsoft/folly,xzmagic/folly,guker/folly,nickhen/folly,Eagle-X/folly,raphaelamorim/folly,romange/folly,bobegir/folly,juniway/folly,kernelim/folly,rklabs/folly,bikong2/folly,guker/folly,arg0/folly,PoisonBOx/folly,Eagle-X/folly,floxard/folly,bikong2/folly,loversInJapan/folly,sonnyhu/folly,kernelim/folly,alexst07/folly,colemancda/folly,chjp2046/folly,Orvid/folly,nickhen/folly,alexst07/folly,colemancda/folly,bsampath/folly,PPC64/folly,PoisonBOx/folly,xzmagic/folly,stonegithubs/folly,arg0/folly,sonnyhu/folly,upsoft/folly,romange/folly,constantine001/folly,fw1121/folly,rklabs/folly,bowlofstew/folly,doctaweeks/folly,clearlylin/folly,floxard/folly,project-zerus/folly,reddit/folly,loversInJapan/folly,KSreeHarsha/folly,yangjin-unique/folly,charsyam/folly,loverszhaokai/folly,ykarlsbrun/folly,CJstar/folly,theiver9827/folly,kernelim/folly,bikong2/folly,wildinto/folly,arg0/folly,stonegithubs/folly,juniway/folly,mqeizi/folly,doctaweeks/folly,nickhen/folly,gavioto/folly,bowlofstew/folly,hongliangzhao/folly,romange/folly,mqeizi/folly,clearlylin/folly,renyinew/folly,shaobz/folly,tomhughes/folly,arg0/folly,CJstar/folly,SammyK/folly,zhiweicai/folly,cole14/folly,lifei/folly,shaobz/folly,tempbottle/folly,romange/folly,KSreeHarsha/folly,Hincoin/folly,theiver9827/folly,facebook/folly,SeanRBurton/folly,bsampath/folly,cole14/folly,theiver9827/folly,reddit/folly,bobegir/folly,bsampath/folly,SammyK/folly,tomhughes/folly,clearlinux/folly,Orvid/folly,bikong2/folly,juniway/folly,renyinew/folly,clearlylin/folly,charsyam/folly,Eagle-X/folly,PPC64/folly,stonegithubs/folly,shaobz/folly,raphaelamorim/folly,brunomorishita/folly,CJstar/folly,PoisonBOx/folly,guker/folly,CJstar/folly,Eagle-X/folly,SammyK/folly,Orvid/folly,PoisonBOx/folly,fw1121/folly,zhiweicai/folly,wildinto/folly,clearlinux/folly