Revert "mtd: switch open_mtd_by_chdev() to use of vfs_stat()"