mtd: spi-nor: fix page program issue when using spi-mem driver