Update instance state after compute service died for rebuilded instance

When nova-compute died unexpectedly or rpc message lost unexpectly
and an rebuild operation is ongoing, the instance will be in REBUILD
state forever after the nova-compute service restarts.
Only if admin take actions such as reset its state.
Like what we did for build instance (general spawn)
operation, the instance might not be used so it need to be set to ERROR
state after compute service restarts.

Change-Id: I37748edb3ca0501b6f2fb41fbd75b7b8aa00d59c
Closes-Bug: #1304184
Merge "Update instance state after compute service died for rebuilded instance"