Fixes Issue 8041 - __gshared without initializer fails compilation.
Merge pull request #1414 from AndrejMitrovic/Fix8041

Issue 8041 - __gshared without initializer fails compilation