pluginManagement dependency locking

I can’t seem to figure out a way to turn on dependency locking for plugin management. I have something that looks like this:

pluginManagement {
    resolutionStrategy {
        eachPlugin {
            if (requested.id.namespace == "com.myorg") {
                useModule("com.myorg.library:plugin:+")
            }

        }
    }
    repositories {
        mavenCentral()
        gradlePluginPortal()
        maven {
            url = uri("https://maven.pkg.github.com/myorg/plugin")
            credentials {
                username = extra.get("gprUser") as String
                password = extra.get("gprKey") as String
            }
        }
    }
}

Is there a way to tell this to have active dependency locking?

You must enable dependency locking for the classpath configuration of the buildscript { ... } block in your build scripts iirc.