tcp: fix kernel panic with listening_get_next