CA-93559/XOP-227: Change code ordering within force_state_reset

TAMPA-LCM: HFX-666

A VM's power_state and allowed_operations are now updated after its
devices are updated. This makes more sense for clients which are
watching for VM.power_state to become halted.