I found the reason I cannot lock the system. In the registery location "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon" , there is a 'DisableLockWorkstation'. It was set to '1'. Issue resolved instantly by setting to '0' .
I don't have any idea when and how it was set.