Fixed a possible deadlock in WebConnectionStream