Fix stale state written to deployment manifest.

There was a small window where a previous state could be written to a deployment manifest due
to holding a stale copy of the deployment manifest. This included *ING states so that subsequent
operations would end up waiting for a state change the would never occur.

git-svn-id: https://svn.apache.org/repos/asf/aries/trunk@1468495 13f79535-47bb-0310-9956-ffa450edef68