in the upper-right portion of the dungeon, you have to choose to go either left or right. Shutters prevent you from backtracking, but as you're going to exit upon defeating the boss, it doesn't matter the first time through.
I'm a completist: I like to get into every room of every dungeon. Thus, i went back in to see the rooms i didn't see the first time. Doing so got me trapped.