terminal: get the pid from GCredentials on 2.35.4+

The GJS 'system' module is going away and the only introspectable API to
get the pid of the current process is in GCredentials.