Locking a thread is to prevent further post farming. Most of the time, I lock a thread when I see the topic of a thread has gone completely off topic.
Quoting directely from the rules,
If a post goes way off topic of the current topic of a thread that counts for posts, it can be considered...