Teen almost got caught masturbating while waiting for an appointment in the clinic