I think they were referred to as Master, but called Sir. As in, the Sexual Torture master was Professor Jankowski. Frequently the students could be heard moaning, "Please, Sir. . . ." (You have to fill in the inflection based on which suggested definition you subscribe to.)
Those Harry Potter books are so useful!