It would lock up the demon, but not necessarily the Warlock. Since she can cast spells, she could have some options for getting out. It all depends on if she packs any options other than burning things down. That's definitely her go to strategy, but she could have a Vampiress or something up her sleeve.