Octavius flicked his wand to let loose the spell, "Petrificus Totalus!" Even if the demon could get out of it with sheer force of will it would give them some time and that's what they needed. They needed time to prepare. They needed to make sure that Nicodemus wouldn't hurt Mal.