PolarSSL: workaround for pending data (WIP)

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