Fix locking in GC.rootIter and GC.rangeIter
Merge pull request #807 from Safety0ff/gciterlock

Fix locking in GC.rootIter and GC.rangeIter