libfdt: fix error code of fdt_count_strings()