lock

open fun lock(): T

Throws if any further mutations are attempted.

Once locked, the only way to unlock is to use clone