More useful than the lock iteself is the the task that is blocking that. Also, more locks might be locked by the same task. I would suggest, instead of iterating through the locks, iterating through the tasks of the locks and informing what tasks are the ones that need to be fixed