mbedtls: fix handling SSL close notification