Critical dynamics of decoherence