Warning · Concurrency
If a Python signal handler interrupts it and calls the watched event’s `set()`, the notification hook tries to acquire that same lock.
Impact
The main thread hangs inside the handler.
Recommended action
Defer event mutation out of the signal handler and document that requirement, or redesign notification publication so it cannot reacquire the interrupted thread’s lock.