[WO-508] Add STARTTLS write buffering during handshake