Please go through the below article to check on the lock and release.
Please let me know if you need any additional information.
Do you have this problem when you try to consolidate the VM disks?
Are you using VDP at your environment?
Yes happened while power on
Simple Steps explained on this blog.
If you found this or any other answer useful please consider the use of the Helpful or Correct buttons to award points.
Does the yes mean you have a VDP in your environment?
Follow below simple steps and get rid of locked .vmdk
vmkfstools -D <VMxxx.vmdk file name>
Verify ESXi Host MAC address from step 1 and search it on each ESXi host (NIC config)
kill <VM process id>
let me know if need more clarification on it.
have to tried the steps, it works ? what is the status.