credential: Set the state to modified when the credential count change
credential: Set the state to modified when the credential count change

Refs #75201

Change-Id: I21a2456f9dadfd0001979e009b6c0cded35f694f

savoirfairelinux/ring-lrc,savoirfairelinux/ring-lrc,savoirfairelinux/ring-lrc,savoirfairelinux/ring-lrc,savoirfairelinux/ring-lrc