code: synchronized void markSealed() {
          if (!this.sealed) {
              this.sealed = true;
              this.segmentChunks = Collections.unmodifiableList(this.segmentChunks);
              this.activeChunkHandle = null;
          }
      }
docs: Records the fact that the Segment represented by this Handle has been sealed.