More state_map updates

1. Allow state transition STATE_HAS_DATA -> STATE_INITIALIZED
2. Will set to STATE_INITIALIZED for successfull updates