libperf: Remove BUG_ON() from library code in get_group_fd()