provide a wrapper for obtaining solaris zoneid

This is cherry-pick of 499b2edbaa8898b1acfaae3653d54f999f834ea1 from master