tls: change SSL_has_pending to avoid BIO check error

No match.