Effect of a minimal length on the thermal properties of a Dirac oscillator