SceneGraph: don't do infinite recursion on deprecated Object::setClean().

Found thanks to (probably otherwise useless) GCC warning about usage of
deprecated function . Clang didn't emit such warning, because
even deprecated function should be able to call itself recursively.