build system: Add spi_flash_add_link_dependency function for spi_flash custom driver Closes IDF-3167 See merge request espressif/esp-idf!14186