Nothing to worry about there. They mean no sex with another person.
100% agree. The concern with no sexual activity is about infecting someone else before you're cured, or getting reinfected by having sex with a partner who may still have it and hasn't been treated, and re-exposing yourself.
Masturbating is fine.