Johan Samuel Lothigius, Chief Judge, Secretary of the Göta Court of Appeal