Fix a regression in SslHandler where delegated tasks run in a different executor makes the session hang

- Fixes #2098