libfdt: Enhanced and published fdt_next_tag()