[C++11] DwarfDebug: Turn single-use functors into lambdas.

No functionality change.