Exactly what do you mean by "locking"? It goes to the "hit Ctrl Alt Del to unlock" screen? Or ust goes blank? Try to time it, see if it's the same time each time. If it's a setting and it does it every 10 minutes it will do it exactly every 10 minutes.
If the screen goes blank, check your power options and also the monitor power options.