Equilibrium statistical treatment of angular momenta associated with collective modes in fission and heavy-ion reactions