Nairne, David, Sir, active 1697-1725, Secretary of the Order of the Thistle