Douglas, Neil, Sir, active 1815-1834, Colonel