On a thermodynamic theory for magnetic relaxation phenomena in anisotropic magnetizable media