ar71xx: image: pass mtdlayout variables by value