Thermodynamics of noncritical M-theory and the topological A-model