Self-similar Collapse of a Self-gravitating Viscous Disk