Ian
My apologies as I should have added that the filed down nut should be locked in position.
There are a few methods of achieving this:
1/ Use a nylock nut for the filed down nut….(hint)…after filing you wont be able to use a spanner so run the nut into position with pliers)
2/ Use thread locking liquid.
3/ After it is in position deliberately damage the shaft thread either side of the filed nut, this a tad destructive and not a prescribed engineering solution but is nevertheless a very effective method of keeping the nut in the correct location.
4/ Use two filed nuts on each shaft and lock them together to prevent any migration.
Hope this helps but please let me know if you need further explanation on any of these points.
Paul