nvs_flash: Version compatibility check for nvs storage (backport 3.1) See merge request idf/esp-idf!2958