Its all technique and when you panic or fear of a touchdown, You tend to forget to use the proper technique and skid out of control or crash.
First of all when riding along wet or loose surfaces. Look out for the driest spot which has less loose stuff like sand and take that path.
Secondly, be gentle with the brakes and downshift well in advance to get some engine braking on the rear wheel which helps to get more traction. Ease off completely on the throttle when you are about to enter a curve and do all the slowing down before you enter the turn and only carry in just enough speed into the curve. Once you are halfway through the curve, Gently accelerate up and ride out of the curve.
While through a curve, if you need to slow down, Gently apply the rear brake without using the front.
Always ensure that your tyres are inflated properly and have enough tread left in them to bite on loose and wet terrain. The tyres and the pattern you use are very important on a bike as its the only contact with the road or track.
Another thing that works to an advantage is pressing down on the outer foot peg while taking a curve. It provides more traction and makes the bike more planted.
Next is leaning your body off the bike as much as possible into the insides of the curve while making a turn. It decreases the lean angle of the bike and provides the best traction, But there is one major disadvantage here. You have the least forward vision and if there is a blind spot, Dont do it.
These are just basic techniques and hope it helps to build up your confidence in the wet and loose terrain. And always remember, Every rider will have a toss evetually. Keeping this in the back of your mind will make you more prepared when it happens. Happy riding