JockyC said..
Having the mast track further back will mean that the centre of effort of the rig will be further back and puts more 'weight' on the back of the board and puts more pressure on the fin.
This also makes the board tend to round up into the wind, so it could be an imbalance as you bear away that causes the spinout... So I'd try putting the track forward.
Where you put the mast base in the track will never move the centre of effort forwards or back. All it will do is stand the rig up a bit straighter or rake it back slightly. The centre of effort is always balanced with the centre of resistance. Period. That is unless raking the sail changes the airflow over it enough to change the actual centre of effort in the sail itself which is very unlikely but not impossible.
Position of the mast base will affect all sorts of other things to do with your leverage over the rig. Mast back will slightly raise the boom height and change the angle. Standing the sail up more will likely slightly raise the centre of effort in the vertical plane.These things may or may not affect spin out.
Changing the rake of your fin will usually change the centre of resistance in the fore aft axis. I find a highly raked fin means I have to move the mast base further back to compensate and this also puts more weight on my back foot if I can't move the foot straps to compensate. This can also make the board ride higher in the nose depending on the design of the fin and it's total lift.
Preventing spinouts is more about having a good fin that suits the size and power of the rig, and an efficient rig without big draft movement back in gusts. Also trying not to over pressure the fin, especially with big shock loadings if possible.
Recovering from spinouts is usually done by sheeting out to reduce pressure on the fin and taking pressure off the back foot. Actively trying to pull it in helps a lot as well if that is possible. A really good fin to me is one that will recover flow itself quickly if the pressure is taken off it a bit.