I want to bring up that it's not only in bdsm relationships that masturbation can be frowned on. It can make your partner feel like they are unable to satisfy your needs. This is an insecurity on their part, and I'm of the opinion that if they don't want you to masturbate, they'd better make damn sure they keep you satisfied.