Settings >Lock screen >Secure lock settings > Lock network and security. Enable it and device will asks pin/password to switch off, restart etc when phone is locked.
Settings >Lock screen >Secure lock settings > Lock network and security. Enable it and device will asks pin/password to switch off, restart etc when phone is locked.