[Libguestfs] [PATCH v3 05/10] lib: extract osinfo DB traversing API