[libvirt PATCH] tests: don't mix FILE* and UNIX FD I/O on same stream