Hot gas heating via magnetic arms in spiral galaxies