For much of the period leading up to Thursday's referendum, gambling markets had pointed solidly in favor of the U.K. staying in the EU.