core/fsFileSource: fix orphan scanning with generators, by collecting items for deletion and then iterating them