When trying to unlock columns via the API on sheets where dependencies are enabled, you get an error due to these dependencies, stating that these need to be disabled first. Unfortunately, there is no method to do so programatically.
The API should either provide functionality to still unlock columns regardless of dependencies, or at the very least provide methods to disable and re-enable dependencies via the API so column unlocking can be accomplished.