I always assumed the cave was warded against (at least up to midlevel) teleportations, plane shifts, and stoneshapes.

Lirian was epic, that trap down there was her "big project" to keep all kinds of spellcasting enemies trapped... so why not just "magically ward" it with spells from the book or a homebrew-version (she might even have help from Dorukan) and be done with it?