[C++11] Replace trivial lambda with std::cref.

git-svn-id: http://llvm.org/svn/llvm-project/cfe/trunk@202968 91177308-0d34-0410-b5e6-96231b3b80d8