PolarSSL: let io_read return more bytes than consumed

Signed-off-by: Eduardo Silva <eduardo@monkey.io>
PolarSSL: new get_bytes_avail() call

Signed-off-by: Eduardo Silva <eduardo@monkey.io>