How can I set lock and unlock a Level in C++?

Hello, I want to set lock and unlock the level that a specific actor is in, the problem is that all the levels are named “Persistent Level” but the Outer of them has the Level name I want (for example in the picture: “Z04_Market_Logic”), the problem is that the outer is an UWorld so I cannot set the “bLocked” variable because it doesn’t have, and changing the “Persistent Level” bLocked variable only makes that “Persistent Level” will be unlocked/locked but not the specific Level I want to unlock/lock:
Here is a screenshoot of the structure of ULevel in code:

And here is my levels (only Persistent Level changes bewteen “locked and unlocked” if I change bLocked variable (ULevel | Unreal Engine Documentation) inside ULevel):

So what can I do if I want to change the Level lock state of an specific actor?

I found the solution, here is all the documentation: FLevelUtils | Unreal Engine Documentation
I used the “ToggleLevelLock” function putting “actor->GetLevel()” as the parameter.