fix LatLng.distanceTo race condition, close #2705