It is intentional. You only need 3 heirlooms to finish the game, but the ending is different if you have all 4.
Sounds like you've missed a key which is hidden in the armory. Once you've found that you'll be able to progress with the jail cells.