cache is_global and fix logic for creating pidlists when saving

A #ifndef conditionally included a block of code only applicable on solaris. However, this code required two lists to contain something, which would no be the case were we not running in a global zone (even if #ifdef HAVE_GETZONEID were true). Cache IsGlobalZone and then put the code that uses data that depends on us being in a global zone inside an if block. Changed name of ContainsSequenceItem to PidInSeq. Removed erroneous log message. Use PrependItem in ZCopyProcessList instead of AppendItem and then reverse the list order afterwards, for each list.
```
}
else
#endif
{
```