provide a wrapper for obtaining solaris zoneid

Part implementation of the changes required to provide a resolution to https://dev.cfengine.com/issues/3974
Small wrapper function to fill the zone name and provide a status on a solaris host. This change should be cherry-picked for 3.6.1 as this is the target version.