Sounds like you need reconditioning. I suggest that you masturbate using the literal shaved beaver to the absolute minimum extent needed to climax, while directing your thoughts to something more appropriate that you also find appealing. Eventually you should be able to work with just that other thing.