Wired up flag to disable slam.

1. Don't run bundle adjustment is FLAGS_slam is false.