[#1464] Make sure the ChannelPromise for writes is notified while using SslHandler