yeah, that's definitely a bug. I didn't have the same problem myself. you can avoid the dungeon if you raise your party level to ab 30 and make sure you're switching between the MC's forms often enough that they're all gaining skills as you play. If you do this, you might not even end up locked in the dungeons at all.