fixed handling connection-length with transfer-encoding: chunked

When both transfer-encoding: chunked and content-length are specified, lhttpc behaves wrong (as I think): it just downloads some bytes and that's all.

It is wrong, because transfer-encoding: chunked means that "content-length" bytes are packed with transfer-encoding chunked.

I've changed order of checks in lhttpc_client and added proper test.