public virtual object Lock() { ObjectContainerBase stream = Stream(); stream.CheckClosed(); return(stream.Lock()); }