Fix #35733: lamps on render layers that are both excluded and used for masking should not be used, same as emissive meshes.
Fix #35733: lamps on render layers that are both excluded and used for masking
should not be used, same as emissive meshes.

pyrochlore/cycles,pyrochlore/cycles,tangent-opensource/coreBlackbird,tangent-opensource/coreBlackbird,pyrochlore/cycles,tangent-opensource/coreBlackbird