mtd: ensure that bdi entries are properly initialized and registered