message: add held locks even if waiting locks do not exist for some reason
diff: @@ -394,13 +394,10 @@ void SetWaitingToHeld(void *c, OwnershipType ownership)
  if (ownership == OwnershipType::EXCLUSIVE)
  {
  auto it = lockdata.writelockswaiting.find(c);
  - if (it == lockdata.writelockswaiting.end())
  - {
  - return;
  - }
  - else
  + if (it != lockdata.writelockswaiting.end())
  {
  it->second.erase(tid);
  + }
  auto iter = lockdata.writelocksheld.find(c);
  if (iter == lockdata.writelocksheld.end())
  {
  @@ -413,17 +410,13 @@ void SetWaitingToHeld(void *c, OwnershipType ownership)
  iter->second.emplace(tid);
  }
  }
  - }
  else // !isExclusive
  {
  auto it = lockdata.readlockswaiting.find(c);
  - if (it == lockdata.readlockswaiting.end())
  - {
  - return;
  - }
  - else
  + if (it != lockdata.readlockswaiting.end())
  {
  it->second.erase(tid);
  + }
  auto iter = lockdata.readlocksheld.find(c);
  if (iter == lockdata.readlocksheld.end())
  {
  @@ -437,7 +430,6 @@ void SetWaitingToHeld(void *c, OwnershipType ownership)
  }
  }
  }
  -}
  // c = the cs
  // isExclusive = is the current lock exclusive, for a recursive mutex (CCriticalSection) this value should always be
  