The door played a role in this event.
Edit: To those claiming that it didn't or was irrelevant I am afraid that I must disagree. We don't know what would have happened if the captain had been able to access the flight deck again but it is highly probable that the outcome could have been different in one way or another.
So yes, the door is a factor to consider here.