[U-Boot] libfdt: Fix bugs in fdt_get_path()