mtd: nand: Add a new helper to retrieve the ECC context