[PATCH 5.16 064/164] tipc: Fix end of loop tests for list_for_each_entry()