remove global dependency of _dep_tree

if the cythonrize function is called mutiple times with different ctx, since the _dep_tree is global value, it will    only record the first _dep_tree.