Modify synchronized variable for auto-closed connection. This ensures
the consistency of connection of a specific channel.