Principal can’t be prosecuted if school teacher thrashes kids: HC