tlist: Add tlist_next() and tlist_prev() functions