Release gil in _tree.pyx:predict