Unlocking Maya nodes is straightforward.
import maya.cmds as cmds
lockedList = [‘PxrCamera’, ‘PxrDebugShadingContext’, ‘PxrDefault’, ‘PxrDirectLighting’, ‘PxrOcclusion’, ‘PxrPathTracer’, ‘PxrValidateBxdf’, ‘PxrVCM’, ‘PxrVisualizer’, ‘TurtleBakeLayerManager’, ‘TurtleDefaultBakeLayer’, ‘TurtleRenderOptions’, ‘TurtleUIOptions’, ‘OmnidirectionalStereo’]
for locked in lockedList:
cmds.lockNode(locked, lock = False)
#to unlock a specific node
cmds.lockNode(‘OmnidirectionalStereo’, lock = False)