stat file of the current process, the
process identified by PID or the Prolog thread identified by
Thread. In all cases, this returns a dict tagged stat with
the field values as defined by man 5 proc.
existence_error(source_sink, _) if the system does not
provide the /proc filesystem.