Fix shared memory recovery
Key the Unix server socket path by a process-local counter in addition to the PID, so that several SharedMemory instances in the same process cannot unlink each other's endpoints and make the segment undiscoverable to newly launched processes.
Accept WAIT_ABANDONED from WaitForSingleObject on Windows, which also grants ownership of the initialization mutex, and let the existing initialization flag determine whether the previous owner finished.
closes https://github.com/official-stockfish/Stockfish/pull/7333
No functional change