carbon2-commit: Prevent access to uninitialized variables in x_init_device.