refactor(Document): Wrap `root` in a `RwLock` for interior mutability
refactor(Document): Wrap `root` in a `RwLock` for interior mutability

stencila/stencila,stencila/stencila,stencila/stencila,stencila/stencila,stencila/stencila,stencila/stencila,stencila/stencila