mbedtls: use `errno` instead of `SO_ERROR` for getting socket errors See merge request espressif/esp-idf!5727