net: x25: Use list_for_each_entry() to simplify code in x25_forward.c