A flush still running after the 30s bound holds its handle's lock.
Closing the meta cache drains queued invalidations, and one for that
handle waits on the same lock, so the hook blocked past its bound
until the flush gave up. Skip the close in that case, as the write
cache removal already is; the process exits right after the hooks.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>