I am using Android 5.1.1 on a Nexus 4.
When the screen is locked, I still can change the sound settings (mute, volume) and I can pull down the top screen menu with the settings for WLAN / Bluetooth, flashlight and so on.
Sometimes I do switch those settings accidentally when the phone is in my pocket, so the light goes on and the battery is finished fast.
How can I lock those settings?