Spin-glass effects on critical behavior in systems with correlated disorder