extra, dinfo: move get_dinfo() from smatch_extra.c to smatch_dinfo.c