The Density Spike in Cosmic-Ray-Modified Shocks: Formation, Evolution, and Instability