Match pygobject logic for vfunc escaping