mtd: nand: switch `check_pattern()' to standard `memcmp()'