Thermodynamic stability and phases of general spinning branes