save only global processes on global zone ps

Save only processes that are running in the global zone on Solaris.
This is going to fail when we're not in the global zone.  You haven't set up pidlist or rootpidlist, so you're getting empty lists here, when you transcribe ip's entries to the other two lists.  You need to restructure this `#ifndef...#endif` the other way round and use a conditional, like:
```
#ifdef HAVE_GETZONEID
    if (isglobal)
    { ... the body of your #else clause ... }
    else
#endif
    { ... the code above in the #ifndef half ... }
```