Fix 13145 - Need LC_ values on Solaris

https://issues.dlang.org/show_bug.cgi?id=13145

There's also a slight improvement in the assertion (as it annoyed me that it failed without any sort of informative message).  It follows what is used elsewhere in runtime, so I think it should be ok.