Cornwallis, Thomas, active 1702-1722, Commissioner of Lotteries