THRIFT-2680 c_glib: ThriftFramedTransport fails when peer unexpectedly closes connection

Patch: Simon South