fix(heap): fix the issue on esp32c3 where retention memory was exhausted prematurely and preventing the CPU from powering down Closes IDF-8236 See merge request espressif/esp-idf!25962