tipc: fix a loop style problem