Assign a unique token to each acquisition and compare it atomically
when unlocking, renewing expiry, or releasing a collected lock. Clear
local ownership before returning from unlock failures so a former
owner cannot later delete its replacement through garbage collection.
Require the matching lua-resty-core and HTTP or stream Lua module
that provides compare_expire. Document this dependency and return an
explicit construction error when the capability is unavailable.
Add a regression for expired owners and correct the sanity test block
numbering. All 87 sanity and ownership assertions pass under ASan on
nginx 1.31.8 with the matching Plus dependencies. HTTP garbage
collection probes also pass. The existing CI workflow still clones
upstream dependencies that do not provide the required operation.