[PATCH openEuler-22.09 v3 339/391] libbpf: Perform map fd cleanup for gen_loader in case of error