Fix 12976 - ModuleInfo should be immutable on Solaris

This follows the changes made for other platforms where ModuleInfo is immutable (as other parts of druntime requires this and will not build without this).