I can not imagine that this activity will have any lasting effect on your surgery. The muscle repair is generally done in multiple layers.
Relax! Masturbation will have no effect on your muscle repair, regardless of whether it results in orgasm. Happy 4th!