generic: mtd: backport SPI_NOR_HAS_LOCK