Set osrelease grain on Solaris hosts

This fixes #4321.