[9.20] fix: usr: Fix assertion failure when receiving DNS responses over TCP
When matching the received Query ID in the TCP connection, an invalid received Query ID can very rarely cause assertion failure.
Closes #4952 (closed)
Backport of MR !9580 (merged)