https://bugs.winehq.org/show_bug.cgi?id=37688
--- Comment #15 from Jaroslav Kazunekit@gmail.com --- (In reply to Anastasius Focht from comment #14)
The idea of this code is basically to open file-backed message queues with 'delete-on-close' semantics, rename them to unique (random) name and close the handle which would cause deletion if the refcount permits (no other clients).
Resolving this as dupe of bug 30399 (covering 'NtSetInformationFile' class 'FileRenameInformation'), created some years ago by me :)
You're awesome, thank you for discovering the cause!