BADLOCKNEST, Unsupported nesting of LOCK commands
Run Time Error: GT.M detected a LOCK (or ZALLOCATE) argument using an extrinsic function that performed other LOCK (or ZALLOCATE) operations, which it could not safely nest.
Action: Revise the code to avoid such a construct. Note that FIS recommends avoiding this code pattern as it can produce unintended results that GT.M does not detect.