zram: simplify and optimize zram_to_dev()