esp_system: Fix SMP FreeRTOS INT WDT and tidy up Closes IDF-4749 See merge request espressif/esp-idf!18000