On that site, 300 runs with if link in seen right before seen.add(link) fetched nothing twice. That held even with sys.setswitchinterval(1e-6), which asks Python to switch threads every microsecond.
Then put a slow step between the check and the add, say a 1 ms robots.txt lookup. All 50 of 50 runs fetched pages more than once: a median of 160 fetches for 61 pages, with one page fetched 7 times. Claim the URL under the lock first and do the slow check after, and there were zero duplicates.
A race your tests can't trigger is still a race. And on a free-threaded build, the threads really do run that window at the same time.
asyncio needs no lock between awaits
asyncio runs many tasks in one thread, and switches between them. Its three pieces fit in a few lines:
import asyncio
async def nap(name):
await asyncio.sleep(0.01)
return name
async def main():
return await asyncio.gather(nap("a"), nap("b"))
print(asyncio.run(main()))
['a', 'b']
async def makes a coroutine: calling nap("a") doesn't run it yet, it makes a task to run. await runs one and waits for its result, and the current task pauses right there so others can run. asyncio.gather runs several at once and returns their results in order, and asyncio.run(main()) starts the loop that runs them all. Use asyncio.sleep inside a coroutine: time.sleep would stop every task at once, since they share one thread.