markImmutable() {
    this.immutable_ = true;
  }
Marks the index as immutable.  Segments cannot be added or removed after
this point.  This doesn't affect the references themselves.  This also
makes the destroy/release methods do nothing.

This is mainly for testing.

@export