LoCo: Learning 3D Location-Consistent Image Features with a Memory-Efficient Ranking Loss