[PATCH 6.5 510/550] Fix termination state for idr_for_each_entry_ul()