Stochastic geometric mechanics of thermal ocean dynamics