Weaken a race condition in object initialization.

It's still there in a different form, but it's not easy to fix.