This ensures that we don't get events out of order, which will make the profiles look a lot less bogus on multi-core systems.