[PATCH 6.6 197/538] selftests/bpf: Refactor out some functions in ns_current_pid_tgid test