Add function table_list_sets()

gnftables will crash if rules contain anonymous set,
this is because the name of anonymous set cannot be found
int the table. Query sets first before listing rules in a chain.