Use ref counting for automatic nodes in DeferredTaskHandler

Previously the storage for automatic pull nodes (handlers actually)
were using a raw pointer, so when the BaseAudioContext goes away there\
is no object keeping these node alive.

This CL adds ref-counting to the storage so the handler can be alive
even after BaseAudioContext is swept away.

Without this fix, the crash happens in few minutes.

Bug: 891187
Test: The repro case does not crash after 2 hours on the local ASAN.
Change-Id: I33a1f74c5803f53e1ace2990af3dd0728720d258
Reviewed-on: https://chromium-review.googlesource.com/c/1286823
Reviewed-by: Kentaro Hara <[email protected]>
Commit-Queue: Hongchan Choi <[email protected]>
Cr-Commit-Position: refs/heads/master@{#601135}
2 files changed