Welcome to MobiFAQ! What do you mean the camera icon is glowing? Does this persist after a reboot? Try booting into Safe Mode, which temporarily disables all 3rd party apps. https://support.google.com/nexus/answer/2852139?hl=en
If the problem disappears in Safe Mode, then something you installed is causing the problem. You may have to uninstall apps one by one until the problem disappears. Focus on apps that have Camera permissions--flashlight apps are common culprits. If the problem persists in Safe Mode, then it's more likely to be a hardware or firmware problem.
I'm not sure what you mean that your lockscreen just won't turn off. Do you mean that you can't unlock the phone?