[PATCH 6.17 310/507] selftests/bpf: Improve reliability of test_perf_branches_no_hw()