UBI: fix bug in atomic_leb_change()