gnutls: Reject new sync ops when handshake is in progress
When certificate verification was moved into the handshake, we introduced a deadlock in WebKit when loading TLS error pages. The problem is described here:
https://bugs.webkit.org/show_bug.cgi?id=107451#c3
We should be robust to such problematic operations, and return an error instead.
Fixes #46 (closed)