Unable to access a file since it is locked

Recently, we ran into this problem where access to our VM was unavailable. We are getting the “Unable to access a file since it is locked” error message with one of our VM that got converted from physical to Virtual (P2V) with the VM Converter.

Searching the web, we found this site that has a solution to fix the problem.

How to unlock locked files on your ESX host