After discussion, seems the issue is that powerd suspends the device as soon as the power button is pressed and the screen lock is released. The suspend happens before the app manager can tell the apps they are inactive, so the camera-app is not able to properly release the camera. When resume happens the camera-app then releases after some time and restarts.
After discussion, seems the issue is that powerd suspends the device as soon as the power button is pressed and the screen lock is released. The suspend happens before the app manager can tell the apps they are inactive, so the camera-app is not able to properly release the camera. When resume happens the camera-app then releases after some time and restarts.