Use the correct SSLSession during handshake.
During a handshake, SSLEngine returns a global shared dummy instance
for calls to getSession(). Setting a value on this results in all
future connections using the value of the first.