Salt is unnatural and not good for most freshwater fish, and for scaleless fish such as loaches, this is particulaly the case.
If you are going to treat sick fish, you should treat them in a seperate hospital tank where you can closely monitor the conditions.
What internal parasites are you trying to treat with salt?