Prevent updates while state change is in progress

This patch will prevent clients to update a node while its transitioning
from one state to another.

Change-Id: I3395916b5f9be3f6a5b6d7e6d92dd9353217d4d0
Merge "Prevent updates while state change is in progress"