Absent an idiotic carrier/mfg skin that disables the feature, you just long-press power then click "lockdown".
Or reboot the device. Rebooting the device will also leave it encrypted if your device has encryption (the PIN/password is needed to decrypt, essentially).