There are certain areas in the game already where you can’t camp. In the hag’s lair, you have to exit to long rest.

I thought long resting would alter the outcome but sure enough after I stepped out and went back in, Mayrina was still in her cage.

Maybe in future patches if you don’t rescue her before a long rest, she will die.