Race condition check