BPY `library.write` has been moved to new PartialWriteContext code a few weeks ago, removing this call to `BKE_blendfile_write_partial_end` was somehow missed then.
BPY `library.write` has been moved to new PartialWriteContext code a few weeks ago, removing this call to `BKE_blendfile_write_partial_end` was somehow missed then.