Fix a possible crash in Libevent2Timer/Libevent2ManualEvent when using a scoped Libevent2Timer.
Change the resource handling code in the libevent2 driver to avoid GC memory leaks.