lib, fdt: move fdtdec_get_int() out of lib/fdtdec.c