public Object lock() { final ObjectContainerBase stream = stream(); stream.checkClosed(); return stream.lock(); }