While i'd have to go back to watch the scene & double check that they do, infact, go through the same door, Vader gives his goons the order to "see to it that [luke] finds his way to the carbon freezing chamber" or something to that effect. So i've always assumed they locked all the doors that went anywhere but the carbon freeze chamber & had the other doors open at the appropriate times to "guide" him there.