save only global processes on global zone ps

Save only processes that are running in the global zone on Solaris.
Cache this:
```
bool isglobal = false;
if (IsGlobalZone())
{
    isglobal = true;
    ....
}
```
and avoid calling IsGlobalZone() again, by simply testing on `isglobal` hereafter.