Lock nuts typically have a malleable insert that deforms to grip the threads of the bolts they're threaded on to, which in turn keep the nuts from vibrating loose. Most projects will call for either locking washers or locking nuts -- not both -- to be used on a given fastener.