This snippet shows the locks currently present in the database for a specific table of a specific namespace. By changing the filters you can see all the locks that are not restricted to tables.
Also, the pid value shows the process connection associated to it, which can be killed in the following way to release the lock: