"And why don't you simply close the door? The Chamber can be sealed, as you very well know. No way in our out." Actually, in dreams, there were countless bridges from one dreamscape to the next. But if Tom could make Harry belief that he could simply lock this door, he would have his Horcrux contained for a while. In the end, mind-magic was all about conviction.