[OHAI-501] Add memory check for solaris2

This is tested on SmartOS, and should work on other Illumos derivatives (and probably on Oracle Solaris, too).

/cc @sax @bixu