Refactoring the /proc/pid/stat code, don't open() the file every time (reuse fd).