Revert "Revert the okssld 4k bugfix because it introduced regressions"

This reverts commit 5bd1f72ca32befce2c3418b49ccff35ad3db7837.
okssld: don't use SSL_pending before the handshake is done.