Preventing a rare, yet possible race condition.