Workaround GCC 4.4 random_device stuff.

In GCC 4.4, std::random_device has an uninitialized field which triggers
a compile-time warning with -Wall.
Do not use synchronizer if it's not initialized.