Some people are having trouble finding the setting “Show camera when locked” because it’s well hidden in the camera app’s internal menu, not in the usual system settings:
I agree, that setting should be on by default. The camera should launch by long-pressing the camera button without any fiddling with settings.