mtd: introduce mtd_device_(un)register()