Fix race condition: clear out the property before calling dispatch_source_cancel, since we assert for the property being nil in the cancellation handler.