From the FAQ:
Named monsters may open and close runelocked doors, whether or not the heroes have the runekey to that door. However, named monsters still cannot open any door leading into an unrevealed area.
I suppose it's the same for any door leading out of an unrevealed area, otherwise my named monsters would leave their rooms too early in the game.