Fixed issue with DOF in mult-threaded render mode.
Restored the const-ness of the tracing functions.