add thread sleep for raising the race condition rate