idevice: properly handle partial SSL_read()s