A high school in New York locked students in the library for not wearing masks.