mbedtls: Fix compilation errors when CONFIG_MBEDTLS_HARDWARE_AES is disabled See merge request idf/esp-idf!3506