Fix missing commit.

If the session does not commit before spawning new Jobs, there is the
risk that the new Jobs see an old version of the compiled or evaluated
objects.