To enable 'Lock Computer' button set
HKCU\Software\Microsoft\Windows\CurrentVersion\Policies\System
DisableLockWorkstation=0 (REG_DWORD)
To disable 'Lock Computer' button set
HKCU\Software\Microsoft\Windows\CurrentVersion\Policies\System
DisableLockWorkstation=1 (REG_DWORD)