Added more instances of correct locking while reading the connect_state_ variable.
Added more instances of correct locking while reading the connect_state_ variable.

bveldhoen/redox,Pertino/redox,bveldhoen/redox,Pertino/redox,hmartiro/redox,hmartiro/redox