If you use the autowalk function and hold the sprint button your horse will keep sprinting, even when its stamina is depleted. Sometimes this does get canceled by bumping into something or jumping, when this happens, just wait for one tick of regen and sprint again.
Happy walking!