mtd: add an mtd method for get_len_incl_bad()