cleanup sockets in test_security

pypy can't be trusted to garbage collect
test identity roundtrip (pypy is failing right now)
fix bytes sockopts in CFFI backend