Instead of ignoring corrupted magic numbers in FreeListRef, fire assertions.
Fix Win32TCPConnection.finalize and timer callbacks (weren't executed as tasks).
Fix a crash in Libevent2ManualEvent when a former waiting thread is destroyed.

Also changed mutex and condition management from reference counted to manually managed.