kernel: backport libcap workaround for BPF selftests