The latest xmrig version produces duplicate shares
**Describe the bug**
The latest xmrig version v6.21.0 (built from this repo) produces duplicate shares.

**To Reproduce**
Build https://github.com/xmrig/xmrig sources (I used ```cmake -DWITH_DEBUG_LOG=ON``` to show deblicate nonces more clearly) and run the following way as usual:

```sudo ~/xmrig/xmrig -o gulf.moneroocean.stream:20016 --tls -u ...```

MoneroOcean pool may be essential to reproduce since it more often changes seed between ZEPH and XMR rx/0 algos. I noticed seed change often preceeds duplicate shares errors. Error happens once per 3 days on average.

**Expected behavior**
No duplicate share errors.

**Required data**
 - Miner log as text or screenshot
As you can see job with ```b0da0400``` nonce is really submitted twice by the miner without any reconnects to the pool and job changes. 

```
[2024-01-21 03:54:08.146] [gulf.moneroocean.stream:20016] received (370 bytes): "{"method":"job","params":{"blob":"1010e08bb4ad062f90cad883cb95fbb48b2c7f78722ef6e5390a2346bef03de4bd6886318daf1a0000000038eef0dba57a4598ea97ff98d5bd7df0d8384b321f7b5eb01e1d57a2c300850729","algo":"rx/0","
height":3066758,"seed_hash":"c7c40a37e46754b82f67b9a9b5edf03c5af1303221b729ceb2604eb32eeb9ccc","job_id":"10387278","target":"68360000","id":"9698647"},"jsonrpc":"2.0"}"
[2024-01-21 03:54:08.146]  net      new job from gulf.moneroocean.stream:20016 diff 308369 algo rx/0 height 3066758 (41 tx)
[2024-01-21 03:54:13.011] [gulf.moneroocean.stream:20016] TLS received (632 bytes)
[2024-01-21 03:54:13.011] [gulf.moneroocean.stream:20016] received (609 bytes): "{"method":"job","params":{"blob":"0303dd8bb4ad06d8906bc8e00540ce03b207b9d74a3548f06319f17adc497142f7a6e0a5128ca100000000102f7f920b0d0000c065377bfc0c0000e0ef8e3b10000000d0e26b4e10000000a01318a605010000c00
c3d7c05010000dd05ad65000000002736b6c3b41351a2fd2addd6d3cb7b913178b96688f8bb03baae24523def3ac3fe6e5eba1f632570cd4d23ea23a552c2fe2b0e36233d8bf007fd25f27358cec98c9198caf0f2e0682fa3972f2fc50f99e155cbf787788123103a62c0ff7b3ff101","algo":"rx/0","height":168811,"seed_hash":"222f067bd4d8c074
a776ca6c14831caa1e5884b225f7a74eecbde2369d58bba1","job_id":"10389009","target":"c5690000","id":"9698647"},"jsonrpc":"2.0"}"
[2024-01-21 03:54:13.011]  net      new job from gulf.moneroocean.stream:20016 diff 158620 algo rx/0 height 168811
[2024-01-21 03:54:13.011]  randomx  init dataset algo rx/0 (16 threads) seed 222f067bd4d8c074...
[2024-01-21 03:54:14.666]  randomx  dataset ready (1655 ms)
[2024-01-21 03:54:30.975] [gulf.moneroocean.stream:20016] send (186 bytes): "{"id":517,"jsonrpc":"2.0","method":"submit","params":{"id":"9698647","job_id":"10389009","nonce":"722f0500","result":"6c6d191dda79a247637af31cea3b24be4131d6f6e8c934ba0686618a304a0000"}}"
[2024-01-21 03:54:30.975] [gulf.moneroocean.stream:20016] TLS send     (208 bytes)
[2024-01-21 03:54:31.488] [gulf.moneroocean.stream:20016] TLS received (87 bytes)
[2024-01-21 03:54:31.489] [gulf.moneroocean.stream:20016] received (64 bytes): "{"jsonrpc":"2.0","id":517,"error":null,"result":{"status":"OK"}}"
[2024-01-21 03:54:31.489]  cpu      accepted (469/0) diff 158620 (514 ms)
[2024-01-21 03:54:40.140]  miner    speed 10s/60s/15m 5929.3 5758.7 5842.3 H/s max 6041.2 H/s
[2024-01-21 03:54:45.893] [gulf.moneroocean.stream:20016] send (186 bytes): "{"id":518,"jsonrpc":"2.0","method":"submit","params":{"id":"9698647","job_id":"10389009","nonce":"b0da0400","result":"65e06cf5dca6fa3c6accf5284c0cb92c0dff298949e13163b7752854411d0000"}}"
[2024-01-21 03:54:45.893] [gulf.moneroocean.stream:20016] TLS send     (208 bytes)
[2024-01-21 03:54:46.409] [gulf.moneroocean.stream:20016] TLS received (87 bytes)
[2024-01-21 03:54:46.409] [gulf.moneroocean.stream:20016] received (64 bytes): "{"jsonrpc":"2.0","id":518,"error":null,"result":{"status":"OK"}}"
[2024-01-21 03:54:46.409]  cpu      accepted (470/0) diff 158620 (515 ms)
[2024-01-21 03:54:54.712] [gulf.moneroocean.stream:20016] send (186 bytes): "{"id":519,"jsonrpc":"2.0","method":"submit","params":{"id":"9698647","job_id":"10389009","nonce":"5ef40400","result":"f04fab5d5b3c57f5cde4ebe13ba8ad995bd06e6dbf0c7f0e320c468fe45a0000"}}"
[2024-01-21 03:54:54.712] [gulf.moneroocean.stream:20016] TLS send     (208 bytes)
[2024-01-21 03:54:55.287] [gulf.moneroocean.stream:20016] TLS received (87 bytes)
[2024-01-21 03:54:55.287] [gulf.moneroocean.stream:20016] received (64 bytes): "{"jsonrpc":"2.0","id":519,"error":null,"result":{"status":"OK"}}"
[2024-01-21 03:54:55.287]  cpu      accepted (471/0) diff 158620 (576 ms)
[2024-01-21 03:54:57.455] [gulf.moneroocean.stream:20016] send (186 bytes): "{"id":520,"jsonrpc":"2.0","method":"submit","params":{"id":"9698647","job_id":"10389009","nonce":"c87b0400","result":"13ce1246d2570bbfc617f28009838acec4d1e6298c12cf64c8a54393bd3d0000"}}"
[2024-01-21 03:54:57.455] [gulf.moneroocean.stream:20016] TLS send     (208 bytes)
[2024-01-21 03:54:58.052] [gulf.moneroocean.stream:20016] TLS received (87 bytes)
[2024-01-21 03:54:58.052] [gulf.moneroocean.stream:20016] received (64 bytes): "{"jsonrpc":"2.0","id":520,"error":null,"result":{"status":"OK"}}"
[2024-01-21 03:54:58.052]  cpu      accepted (472/0) diff 158620 (597 ms)
[2024-01-21 03:55:21.571] [gulf.moneroocean.stream:20016] send (186 bytes): "{"id":521,"jsonrpc":"2.0","method":"submit","params":{"id":"9698647","job_id":"10389009","nonce":"f0410000","result":"331b11fad4ef7e688ffb57ab45283595a4a80dff60100b5a43b7e022af490000"}}"
[2024-01-21 03:55:21.571] [gulf.moneroocean.stream:20016] TLS send     (208 bytes)
[2024-01-21 03:55:22.089] [gulf.moneroocean.stream:20016] TLS received (87 bytes)
[2024-01-21 03:55:22.089] [gulf.moneroocean.stream:20016] received (64 bytes): "{"jsonrpc":"2.0","id":521,"error":null,"result":{"status":"OK"}}"
[2024-01-21 03:55:22.089]  cpu      accepted (473/0) diff 158620 (519 ms)
[2024-01-21 03:55:40.276]  miner    speed 10s/60s/15m 5907.6 5898.3 5845.6 H/s max 6041.2 H/s
[2024-01-21 03:55:59.405] [gulf.moneroocean.stream:20016] send (186 bytes): "{"id":522,"jsonrpc":"2.0","method":"submit","params":{"id":"9698647","job_id":"10389009","nonce":"722f0500","result":"6c6d191dda79a247637af31cea3b24be4131d6f6e8c934ba0686618a304a0000"}}"
[2024-01-21 03:55:59.405] [gulf.moneroocean.stream:20016] TLS send     (208 bytes)
[2024-01-21 03:55:59.454] [gulf.moneroocean.stream:20016] TLS received (97 bytes)
[2024-01-21 03:55:59.454] [gulf.moneroocean.stream:20016] received (74 bytes): "{"jsonrpc":"2.0","id":522,"error":{"code":-1,"message":"Duplicate share"}}"
[2024-01-21 03:55:59.454]  cpu      rejected (473/1) diff 158620 "Duplicate share" (50 ms)
[2024-01-21 03:56:14.487] [gulf.moneroocean.stream:20016] send (186 bytes): "{"id":523,"jsonrpc":"2.0","method":"submit","params":{"id":"9698647","job_id":"10389009","nonce":"b0da0400","result":"65e06cf5dca6fa3c6accf5284c0cb92c0dff298949e13163b7752854411d0000"}}"
[2024-01-21 03:56:14.487] [gulf.moneroocean.stream:20016] TLS send     (208 bytes)
[2024-01-21 03:56:14.534] [gulf.moneroocean.stream:20016] TLS received (97 bytes)
[2024-01-21 03:56:14.534] [gulf.moneroocean.stream:20016] received (74 bytes): "{"jsonrpc":"2.0","id":523,"error":{"code":-1,"message":"Duplicate share"}}"
[2024-01-21 03:56:14.534]  cpu      rejected (473/2) diff 158620 "Duplicate share" (48 ms)
[2024-01-21 03:56:23.353] [gulf.moneroocean.stream:20016] send (186 bytes): "{"id":524,"jsonrpc":"2.0","method":"submit","params":{"id":"9698647","job_id":"10389009","nonce":"5ef40400","result":"f04fab5d5b3c57f5cde4ebe13ba8ad995bd06e6dbf0c7f0e320c468fe45a0000"}}"
[2024-01-21 03:56:23.354] [gulf.moneroocean.stream:20016] TLS send     (208 bytes)
[2024-01-21 03:56:23.472] [gulf.moneroocean.stream:20016] TLS received (97 bytes)
[2024-01-21 03:56:23.472] [gulf.moneroocean.stream:20016] received (74 bytes): "{"jsonrpc":"2.0","id":524,"error":{"code":-1,"message":"Duplicate share"}}"
[2024-01-21 03:56:23.472]  cpu      rejected (473/3) diff 158620 "Duplicate share" (118 ms)
[2024-01-21 03:56:25.991] [gulf.moneroocean.stream:20016] send (186 bytes): "{"id":525,"jsonrpc":"2.0","method":"submit","params":{"id":"9698647","job_id":"10389009","nonce":"c87b0400","result":"13ce1246d2570bbfc617f28009838acec4d1e6298c12cf64c8a54393bd3d0000"}}"
[2024-01-21 03:56:25.991] [gulf.moneroocean.stream:20016] TLS send     (208 bytes)
[2024-01-21 03:56:26.040] [gulf.moneroocean.stream:20016] TLS received (97 bytes)
[2024-01-21 03:56:26.040] [gulf.moneroocean.stream:20016] received (74 bytes): "{"jsonrpc":"2.0","id":525,"error":{"code":-1,"message":"Duplicate share"}}"
[2024-01-21 03:56:26.040]  cpu      rejected (473/4) diff 158620 "Duplicate share" (48 ms)
```
 - Config file or command line (without wallets)
```sudo ~/xmrig/xmrig -o gulf.moneroocean.stream:20016 --tls -u ...```

 - OS: [e.g. Windows]
Linux (not checked Windows)

**Additional context**

Miner rx/0 setup on affected system:
```
 * ABOUT        XMRig/6.21.0 gcc/11.4.0 (built for Linux x86-64, 64 bit)
 * LIBS         libuv/1.43.0 OpenSSL/3.0.2 hwloc/2.7.0
 * HUGE PAGES   supported
 * 1GB PAGES    disabled
 * CPU          11th Gen Intel(R) Core(TM) i7-11700K @ 3.60GHz (1) 64-bit AES
                L2:4.0 MB L3:16.0 MB 8C/16T NUMA:1
 * MEMORY       12.7/31.2 GB (41%)
                Controller0-ChannelA-DIMM0: 16 GB DDR4 @ 3200 MHz SP016GXLZU320FSA
                Controller0-ChannelA-DIMM1: <empty>
                Controller0-ChannelB-DIMM0: 16 GB DDR4 @ 3200 MHz SP016GXLZU320FSA
                Controller0-ChannelB-DIMM1: <empty>
 * MOTHERBOARD  ASUSTeK COMPUTER INC. - PRIME H570M-PLUS
 * DONATE       1%
 * ASSEMBLY     auto:intel
 * POOL #1      gulf.moneroocean.stream:20016 algo auto
[2024-01-21 08:48:57.864] POOLS --------------------------------------------------------------------
[2024-01-21 08:48:57.864] url:       gulf.moneroocean.stream:20016
[2024-01-21 08:48:57.864] host:      gulf.moneroocean.stream
[2024-01-21 08:48:57.864] port:      20016
[2024-01-21 08:48:57.864] user:      ...
[2024-01-21 08:48:57.864] pass:      (null)
[2024-01-21 08:48:57.864] rig-id     (null)
[2024-01-21 08:48:57.864] algo:      invalid
[2024-01-21 08:48:57.864] nicehash:  0
[2024-01-21 08:48:57.864] keepAlive: 0
[2024-01-21 08:48:57.864] --------------------------------------------------------------------------
 * COMMANDS     hashrate, pause, resume, results, connection
 * OPENCL       disabled
 * CUDA         disabled
[2024-01-21 08:48:57.866] [gulf.moneroocean.stream:20016] state: "unconnected" -> "host-lookup"
[2024-01-21 08:48:57.892] [gulf.moneroocean.stream:20016] state: "host-lookup" -> "connecting"
[2024-01-21 08:48:57.941] [gulf.moneroocean.stream:20016] state: "connecting" -> "connected"
[2024-01-21 08:48:57.942] [gulf.moneroocean.stream:20016] TLS send     (293 bytes)
[2024-01-21 08:48:57.996] [gulf.moneroocean.stream:20016] TLS received (1465 bytes)
[2024-01-21 08:48:58.000] [gulf.moneroocean.stream:20016] send (546 bytes): "{"id":1,"jsonrpc":"2.0","method":"login","params":{"login":"...","pass":"x","agent":"XMRig/6.21.0 (Linux x86_64) libuv/1.43.0 gcc/11.4.0","algo":["cn/1","cn/2","cn/r","cn/fast","cn/half","cn/xao","cn/rto","cn/rwz","cn/zls","cn/double","cn/ccx","cn-lite/1","cn-heavy/0","cn-heavy/tube","cn-heavy/xhv","cn-pico","cn-pico/tlo","cn/upx2","rx/0","rx/wow","rx/arq","rx/graft","rx/sfx","rx/keva","argon2/chukwa","argon2/chukwav2","argon2/ninja","ghostrider"]}}"
[2024-01-21 08:48:58.000] [gulf.moneroocean.stream:20016] TLS send     (648 bytes)
[2024-01-21 08:48:58.051] [gulf.moneroocean.stream:20016] TLS received (1218 bytes)
[2024-01-21 08:48:58.051] [gulf.moneroocean.stream:20016] received (653 bytes): "{"jsonrpc":"2.0","id":1,"error":null,"result":{"id":"11285391","job":{"blob":"0303f695b5ad06c2dc5f4b8a724d032dc76978ea94e74456326ffd2b9c4032e470ca673c21174900000000a0634db8340d0000a0df80af0b0d000050c9fa081000000010c66a3b10000000103ac43a06010000a041d9ca05010000f74aad650000000073d1f011c33509e8ecacf1bedb78301d4ebc649c6fde95ee045bfeee72a8d48ea913b1de146cb4835a660312266e3157a3fa1d5a6198a017b4172952f0740f27c13d547c1066374e6a7b0a0531503cc382352f04934421031f65d58366e10c3301","algo":"rx/0","height":168960,"seed_hash":"222f067bd4d8c074a776ca6c14831caa1e5884b225f7a74eecbde2369d58bba1","job_id":"11285392","target":"89b90000","id":"11285391"},"status":"OK"}}"
[2024-01-21 08:48:58.051]  net      use pool gulf.moneroocean.stream:20016 TLSv1.3 44.224.209.130
[2024-01-21 08:48:58.051]  net      fingerprint (SHA-256): "239daadd5c7d0ac097376c7871f787738826eef1c024729eff870e473b970855"
[2024-01-21 08:48:58.051]  net      new job from gulf.moneroocean.stream:20016 diff 90426 algo rx/0 height 168960
[2024-01-21 08:48:58.051]  cpu      use argon2 implementation AVX-512F
[2024-01-21 08:48:58.052]  msr      register values for "intel" preset have been set successfully (1 ms)
[2024-01-21 08:48:58.052]  randomx  init dataset algo rx/0 (16 threads) seed 222f067bd4d8c074...
[2024-01-21 08:48:58.141]  randomx  allocated 2336 MB (2080+256) huge pages 100% 1168/1168 +JIT (89 ms)
[2024-01-21 08:48:59.763]  randomx  dataset ready (1622 ms)
[2024-01-21 08:48:59.763]  cpu      use profile  rx  (8 threads) scratchpad 2048 KB
[2024-01-21 08:48:59.767]  cpu      READY threads 8/8 (8) huge pages 100% 8/8 memory 16384 KB (4 ms)
```
