Thermal management for chemical looping systems with chemical production