I have tried this approach, but I still got the error (in a couple of different incarnations). If you ran yours, I wonder if maybe you didn't run it for long enough, because, based on what is written above, it is still unsafe due to asynchronous accesses.