Get rid of set_failed_state duplication

drivers.modules.agent and drivers.modules.iscsi_deploy contain
_set_failed_state and set_failed_state functions respectively, which
are almost identical. This change moves this functionality to
drivers.modules.deploy_utils.

Change-Id: I2987898e656b2451d3eacd0d5e9bc7fa35723ad5