Fix refleak in insert. PYTHON-564