It takes considerable torque to fully tighten a cassette lockring, in part because there is
a sort of ratchet mechanism under the lockring to keep it from loosening. Torque needed
will be in the cassette info, but absent a torque wrench try rotating the lockring another
1/4-1/2 turn. If it still rattles you may need that thicker spacer if you still have it.