list: fix list_prev and list_next on const lists.