TRQ-2776. Make get_proc_stat() use tokenized parsing instead of sscanf.

This is about 25% faster than using the sscanf method of reading the
file.