Even if the door is locked, Yen Sid (being the semi-being that he is) would know you arrived and open the door after you got to the room.