Files are locked in a stream. Files can be locked even before they are modified and associated with a work item through a changeset. I don't think SCM clients provide a view where you can see lock files by work item.
Dashboards and work items are no longer publicly available, so some links may be invalid. We now provide similar information through other means.
Learn more here.