Converting terminalHasColors mutex to a global ManagedStatic to avoid the static destructor.