This lock is only used by the `append()` method, so is not doing the locking that I think you intend. See previous comment about getting rid of this complex class in favour of something more like `MementoFileWriterSync`.