'Jail' threat to unruly pupils