Gamble, John, active 1795-1830, Chaplain-General