We need more information. Are you having a problem with location services being deactivated, or do you want to lock the settings so that it cannot be deactivated? These would be entirely different questions, and I don't know which you are asking.
If it's the second, you probably need an app which can lock access to the system settings. I don't know of one that would lock a particular setting, but there are apps that can password-protect access to other apps, so you could experiment with one of these. Never tried one myself, so can't offer more specific advice. Also don't know whether they would override widgets which toggle this setting.
If it's the first, please give us as much detail about the device, software version, symptoms, when it started, etc as you can, since that would be quite an unusual problem.