My device won't lock
If your device does not lock despite sending the "LOCK command executed" message, go to Settings -> Security -> Lock Phone after... and select "Immediately". On some devices the option may be called "Security lock timer" or "Timeout"
Also check that you entered a code at least 4 characters long, shorter codes are not accepted.