The -n flag now also disables recording samples.

Again, this helps get more accurate metrics of the render speed, since
recording samples involves reading/writing from/to the HDD.
Early out for shadow rays.

Apparently forgot to re-add this after the last major refactor.  Small
speed bump.