Police feared stolen lorry could be used in terrorist attack