Make macro defined event base variables immutable (GitHub PR) Closes IDFGH-9106 See merge request espressif/esp-idf!22032