opkg: implement active_list_prev and test cases.