hal: workaround for UART FIFO read on ESP32 with -O2 optimization Closes IDFCI-97 See merge request espressif/esp-idf!10263