Btrfs-progs: fix bug in find_root_gen