Report lock name when locking fails.