Fix typo in race condition workaround