Fixes a deadlock caused by walking up the heirarchy. (#2147)
Fixes a deadlock caused by walking up the heirarchy. (#2147)

* Fixes a deadlock caused by walking up the heirarchy.

* Use scope locker / unlocker and add a comment.

* Add comment about calling __setNeedsLayout without the lock.

bimawa/AsyncDisplayKit,rmls/AsyncDisplayKit,Adlai-Holler/AsyncDisplayKit,samhsiung/AsyncDisplayKit,JetZou/AsyncDisplayKit,bimawa/AsyncDisplayKit,george-gw/AsyncDisplayKit,JetZou/AsyncDisplayKit,gazreese/AsyncDisplayKit,samhsiung/AsyncDisplayKit,rmls/AsyncDisplayKit,harryworld/AsyncDisplayKit,chrisdanford/AsyncDisplayKit,romyilano/AsyncDisplayKit,flovouin/AsyncDisplayKit,maicki/AsyncDisplayKit,aaronschubert0/AsyncDisplayKit,garrettmoon/AsyncDisplayKit,george-gw/AsyncDisplayKit,harryworld/AsyncDisplayKit,gazreese/AsyncDisplayKit,lappp9/AsyncDisplayKit,chrisdanford/AsyncDisplayKit,rahul-malik/AsyncDisplayKit,flovouin/AsyncDisplayKit,rahul-malik/AsyncDisplayKit,aaronschubert0/AsyncDisplayKit,tomizimobile/AsyncDisplayKit,garrettmoon/AsyncDisplayKit,smyrgl/AsyncDisplayKit,samhsiung/AsyncDisplayKit,Adlai-Holler/AsyncDisplayKit,romyilano/AsyncDisplayKit,levi/AsyncDisplayKit,chrisdanford/AsyncDisplayKit,garrettmoon/AsyncDisplayKit,maicki/AsyncDisplayKit,Adlai-Holler/AsyncDisplayKit,rmls/AsyncDisplayKit,JetZou/AsyncDisplayKit,rahul-malik/AsyncDisplayKit,george-gw/AsyncDisplayKit,flovouin/AsyncDisplayKit,gazreese/AsyncDisplayKit,harryworld/AsyncDisplayKit,facebook/AsyncDisplayKit,smyrgl/AsyncDisplayKit,JetZou/AsyncDisplayKit,romyilano/AsyncDisplayKit,tomizimobile/AsyncDisplayKit,facebook/AsyncDisplayKit,garrettmoon/AsyncDisplayKit,aaronschubert0/AsyncDisplayKit,harryworld/AsyncDisplayKit,Adlai-Holler/AsyncDisplayKit,flovouin/AsyncDisplayKit,levi/AsyncDisplayKit,lappp9/AsyncDisplayKit,garrettmoon/AsyncDisplayKit,tomizimobile/AsyncDisplayKit,facebook/AsyncDisplayKit,smyrgl/AsyncDisplayKit,levi/AsyncDisplayKit,tomizimobile/AsyncDisplayKit,rmls/AsyncDisplayKit,facebook/AsyncDisplayKit,maicki/AsyncDisplayKit,Adlai-Holler/AsyncDisplayKit,maicki/AsyncDisplayKit,maicki/AsyncDisplayKit,levi/AsyncDisplayKit,lappp9/AsyncDisplayKit,george-gw/AsyncDisplayKit,levi/AsyncDisplayKit,aaronschubert0/AsyncDisplayKit,tomizimobile/AsyncDisplayKit,bimawa/AsyncDisplayKit,gazreese/AsyncDisplayKit,chrisdanford/AsyncDisplayKit,romyilano/AsyncDisplayKit,bimawa/AsyncDisplayKit,JetZou/AsyncDisplayKit,rahul-malik/AsyncDisplayKit,lappp9/AsyncDisplayKit,samhsiung/AsyncDisplayKit,flovouin/AsyncDisplayKit,smyrgl/AsyncDisplayKit,rmls/AsyncDisplayKit,harryworld/AsyncDisplayKit,aaronschubert0/AsyncDisplayKit