Model of phase locking in spin-transfer-driven magnetization dynamics