Add y_get_profile_by_name()

This one is also present in y_flow_list.c, but might as well add it back here as well.