[corlib] Fix issue with setting Console.InputEncoding/OutputEncoding throwing an exception on Unity .NET profile.

Added UNITY to #if to match the #if used to guard Console.Input/OutputEncoding properties.