Extended quantum criticality of low-dimensional superconductors near a spin-density-wave instability