Quantum thermalization and thermal entanglement in the open quantum Rabi model