bpf: Move stack_map_get_build_id into lib