Better synchronization on lazy connection opening