[Orc] Fix a bug in the LazyEmittingLayer - capture names by value (as