(The following is offered as a possible way of understanding. If it is not helpful - please ignore it.)
The atonement of Jesus Christ is described as infinite, in the sense that there is no finite limit to the number of people or of sins which may be cleansed by it.
When time is regarded in a common-sense fashion as linear, sequential and irreversible; Christ's atonement must (I think) be seen as continuing and on-going and un-ceasing - for so long as Men sin and repent.
After Christ had suffered and died and descended into Hell; the atonement was completed for everybody up to that point in history. From that point onwards the atonement is re-enacted moment by moment; again with each repented sin.
The historical atonement therefore established the process by which Jesus Chris took on himself the sins of the world - and suffers for us, that we may be made clean.
The atonement is what allows us to be resurrected and perfected in body and soul (cleansed, purged, made new and whole - while yet remaining our-selves).
But this does not happen automatically nor is it forced upon anybody - but necessarily happens only by our individual consent and choice.
If any person does not allow this to happen, chooses that it does not happen, reject's Christ's offer to take away our sins on condition of repentance; then the atonement does not apply, Christ does not cleanse us - and we are resurrected uncleansed.
Since the resurrection is permanent and irreversible, the unrepented sins are built-in, permanent and irreversible.
This is the state termed damnation.
Clearly, on this basis, it would be wise not to be resurrected until after we have acknowledged and repented our sins, and 'believed-in' Christ to the extent that we accept his offer to cleanse us.
On this basis, I assume our loving Heavenly Father would tend not to resurrect an unrepentant soul, but to wait and delay resurrection - in hope that repentance will follow at some time, in response to reflection and experiences in the post-mortem spirit realm (perhaps also interventions from those alive on earth).
Only if and when an unrepentant soul insists on being resurrected here-and-now (through Pride) would damnation actually happen.
Only then would a soul be damned - firstly by that soul's own choice to reject Christ's atonement, and secondly by refusal to wait and delay, ponder and learn - but impatiently and against divine advice to demand immediate resurrection of their yet sin-full body and soul.