Add synchronized block when start a new socket