initialize connect_lock by default