Hydrodynamically locked morphogenesis in karst and ice flutings