A mother of a Year 9 pupil said she found herself locked in the school's reception after her daughter called her "in tears".