As clean up tasks after IPv6 integration the following are required :-
1. Class ids need to be cached as JNI global references to avoid
FindClass overall.
2. Heap allocation of sockaddr has leaks and can lead to malloc
lock contention. This needs to be replaced with stack allocated
sockaddrs.