Three-step labyrinth seal for high-performance turbomachines