bugfix in libhl (linklist)

the iterator was accessing the item after releasing it
(introduced after last changes to extend the return code semantic)