Flush input buffer for a client connection when calling connection_teardown().

Signed-off-by: Martin Szulecki <m.szulecki@libimobiledevice.org>