[Libguestfs] [PATCH v3 2/6] daemon: move read_whole_file to common utils