Include m_changes in key_state "finished" method
Fix a race condition in state_hash_table.

An iterator could lock the latest item stored under a given key, but return
pointer to a previous state stored under the same key.  Would lead updates to
appear "lost" and not retransmitted.