shl: move dlist implementation to shl_dlist_*