Fixes behavior of leave() called on a filesystem iterator created by enter_new