openssl: renaming
openssl: fix crasher when using SessionHandlers because of GC

The problem was that a NewSessionCallback could be unreferenced and then
be GC'd while still referenced from native code. This commit introduces
some helper methods to track global refs to make sure memory leaks can
be found easier later.