libbpf: Support expected_attach_type at prog load