Taking screenshots when locking the phone

Just for clarification:

If you disable the power+volume button shortcut as @urs_lesse wrote, screenshots can still be taken from the app overview (where you switch between open apps, from the square navigation button or gesture).