Refine flist apis and add flist_tail() api