Checking dirty_list was insufficient after a spill with no named databases and no positioned cursors.