Attosecond-pulse formation in the water-window range by an optically dressed hydrogen-like plasma-based C5+ x-ray laser