I too had that with some leather when my client crashed during sorting. The lock seemed to time out after quite a long time.. several hours.
Surely there is code that detects timeouts.. perhaps add to it a bit of code that unlocks anything currently locked by that player.