Normalize lock exception messages.