Fixed a bug in crt_tcp_read_to()

When read timeout, former interface will return -1 in any case, this do
not conform to the behavior in Linux setsockopt() & read().
However, the expected behavior is returning the size of read and errno
should be 0.

This bug was fixed in this patch.