[Libguestfs] [PATCH 3/3] md: code cleanups