[PATCH 6.18 368/614] selftests/bpf: Improve reliability of test_perf_branches_no_hw()