qemu: Set fake reboot flag only in acpi mode for shutdown
qemu: Set fake reboot flag only in acpi mode for shutdown

Conditional setting of the fake reboot flag should only happen for
the acpi mode shutdown path; however, for the agent mode shutdown,
the fake reboot should be cleared. This patch will essentially revert
commit id '8be502fd', but adds an explicit setting of the flag to false
when using mode=agent while also only conditionally setting the reboot
flag if the guest went away. This also avoids an issue where a shutdown
with reboot semantics is done from agent mode which sets the reboot
flag followed by a shutdown from within the guest which would result
in a reboot due to the fake reboot flag being set. The change will
also properly handle the cases described in the following archive post:

  https://www.redhat.com/archives/libvir-list/2015-April/msg00715.html

libvirt/libvirt,jfehlig/libvirt,libvirt/libvirt,fabianfreyer/libvirt,crobinso/libvirt,eskultety/libvirt,VenkatDatta/libvirt,zippy2/libvirt,nertpinx/libvirt,fabianfreyer/libvirt,taget/libvirt,jfehlig/libvirt,VenkatDatta/libvirt,jfehlig/libvirt,jfehlig/libvirt,jardasgit/libvirt,eskultety/libvirt,eskultety/libvirt,andreabolognani/libvirt,fabianfreyer/libvirt,libvirt/libvirt,zippy2/libvirt,crobinso/libvirt,datto/libvirt,taget/libvirt,taget/libvirt,olafhering/libvirt,nertpinx/libvirt,jardasgit/libvirt,jardasgit/libvirt,zippy2/libvirt,taget/libvirt,VenkatDatta/libvirt,VenkatDatta/libvirt,eskultety/libvirt,andreabolognani/libvirt,crobinso/libvirt,datto/libvirt,zippy2/libvirt,jardasgit/libvirt,nertpinx/libvirt,olafhering/libvirt,olafhering/libvirt,eskultety/libvirt,andreabolognani/libvirt,taget/libvirt,libvirt/libvirt,nertpinx/libvirt,nertpinx/libvirt,datto/libvirt,datto/libvirt,olafhering/libvirt,fabianfreyer/libvirt,fabianfreyer/libvirt,datto/libvirt,VenkatDatta/libvirt,andreabolognani/libvirt,crobinso/libvirt,jardasgit/libvirt,andreabolognani/libvirt