Throws an exception if the client is disposed or immutable.
protected void ThrowIfDisposedOrImmutable()