Atomic spatial coherence with spontaneous emission in a strong-coupling cavity