kernel: replace downstream get_mtd_device_by_node() implementation