They are tied with the day/night cycle of that dungeon. 1 unlocks during day, the other during night. Alternatively, there is an item (one of the boots) that lets you pass through walls
ohhh i see now! thanks you