Flush agent state where set can happen in a non RPC thread.