refactor(nvs): custom allocator for all objects allocated in NVS Closes IDF-6308 See merge request espressif/esp-idf!21239