A racehorse dubbed the country’s unluckiest thoroughbred has finally finished first after appealing for some royal luck.