idevice: don't free ssl bio after SSL_set_bio has been called
idevice: free ssl object when SSL handshake fails
lockdown: do not send Goodbye when SSL session was active
Revert "lockdown: do not send Goodbye when SSL session was active"

This reverts commit 56392428a49543bab4b12431451ec04bb799c411.

Actually I committed this because of usbmuxd complaining about a TCP RST.
But lockdownd is now complaining since it waits for the Goodbye packet
(which I apparently didn't see during testing).
Merge branch 'master' of https://github.com/libimobiledevice/libimobiledevice