Phase-flow interpretation of magnetization relaxation in nanomagnets