[PATCH AUTOSEL 5.7 128/274] libbpf: Refactor map creation logic and fix cleanup leak