Warning · Resource lifecycle
If deletion fails, `_track_thread_signal` wraps the surviving hook on the next wait.
Impact
Repeated waits retain more wrappers until a notification can raise `RecursionError`.
Recommended action
Keep a reusable registration for any hook that remains installed after cleanup fails.