Tandem mirror reactor with thermal barriers