[PATCH openEuler-22.09 331/379] libbpf: Perform map fd cleanup for gen_loader in case of error