rtpdtmfsrc: fix leak when shutting down mid-event
.. and update rtpdtmfdepay unit test to trigger the potential leak more reliably (without the fix).
Fixes #3633 (closed)
Plus some gratuitous clean-up so we don't serialize/g_free events for logging purposes if logging is not enabled.