Fixed memory leak in socket leak detection

Thanks, valgrind. zsys wasn't freeing the sockrefs when
destroying sockets via application calls.