Fix memory leaks from NSS on libsx cleanup