What do you mean by “you can not”? Any error message, etc?
Do you start the device in correct (fastboot) mode? The “virtual” on-screen “LED” indicator should be blue. Is the phone correctly discovered by PC while in fastboot (“blue LED”) mode?
The command to issue from PC is: fastboot oem lock
That’s all it takes. So I can’t see why it wouldn’t work if done correctly.