Analytical study of synchronization in spin-transfer-driven magnetization dynamics