Detailed balance in quasiclassical trajectory calculations of thermal rate constants for chemical reactions