pothos-gui: fix orphan delete loop and uniqueness