I do not think that it matters if the locknut is on the inside or the outside. I think that the main thing is that per this sealing concept, the o-ring is on the outside, it should be tightened by something that does not rotate against the o-ring.
Now for the shim size, I think that most use...