Lajos főherceg (1784-1864), cs. kir. táborszernagy, az Állami Konferencia tagja