Fix crashing in Snow Leopard due to race condition.