Read-only handles can strand strict lock claims on Windows
Description
Impact
On Windows, a process with read access to strict-lock claims can cause StrictSoftFileLock.release() to fail. A published claim can continue blocking later acquisitions after the reader closes its handle. The handle behavior was confirmed on Windows 11.
Affected version and mitigation
The confirmed affected release is filelock 4.2.12. Upgrade to 4.3.0 or later.
The lock now retains the handles needed to withdraw its public claims. Release can still wait for Windows or report a cleanup failure. Restrict read access to participating accounts. On an affected version, the original holder can retry release after the reader closes its handle. Fix in PR #989.
Credits
OSS Scanner: ANT-2026-FZQZV3HB.