Subject: bug#64821: 30.0.50; write-region errs when overwriting an already open file

From: Mattias Engdegård <[email-masked]>
Date: Thu, 27 Jul 2023 17:07:26 +0200

The change on master (8955853368) causes filelock-tests to fail; see attached log.
This is on macOS with an out-of-tree build.