[PATCH v2 2/9] libbpf: Introduce bpf_obj_get_flags()