[PATCH v4 2/3] selftests/seccomp: Refactor get_proc_stat to split out file reading code