UBI: do not change file pointer while updating