On the lock-nut there is a soft collar that you can tap into the grove in the stub axle to stop it coming loose. This is "staking" the nut. You can lever this collar back out of the grove to undo the nut.
Or use a new nut if you prefer.
Or use a new nut if you prefer.