Cycles-Bake: fix for regression introduced on: "[review] restoring SAMPLING_PATTERN_CMJ test and adding a
is_baking variable"

The bug was: scenes with more than one object will misbehave.

We can't get the object id before the scene is updated, so we now
set the baking variable before we call bake_manager->init.