Bugfix: locking text writer dies on .init

Fixes issue 10898