Warning · Resource lifecycle
If the condition rejects the second assignment, cleanup cannot find the unpublished tracker.
Impact
The wait raises, and subsequent notifications still invoke the leftover wrapper, which retains the tracker and event.
Recommended action
If assigning `notify` fails, restore the prior `notify_all` override or delete the newly added instance attribute before re-raising.