Removed potentially unneeded lambda capture.
Removed potentially unneeded lambda capture.

In some instances variables used in the body of a lambda do not need
to be captured explicitly, see e.g.,
https://stackoverflow.com/a/43468519/176922. Support for this across
compiler vendors seems to be incomplete at this point; while e.g.,
clang emits a warning (which we potentially turn into a fatal error)
for this, msvc still seems to require such variables to be captured.

To provide a warning free build this patch moves from the usually
preferred explicit capture list to an implicit capture by reference.
This allows us to capture all needed variables correctly without
having to capture too much.

Review: https://reviews.apache.org/r/67927

Gilbert88/mesos,dforsyth/mesos,gsantovena/mesos,chhsia0/mesos,jpeach/mesos,jpeach/mesos,abudnik/mesos,dforsyth/mesos,kaysoky/mesos,kaysoky/mesos,dforsyth/mesos,reneploetz/mesos,gsantovena/mesos,jpeach/mesos,jpeach/mesos,gsantovena/mesos,abudnik/mesos,chhsia0/mesos,jpeach/mesos,jpeach/mesos,dforsyth/mesos,andschwa/mesos,kaysoky/mesos,reneploetz/mesos,reneploetz/mesos,andschwa/mesos,gsantovena/mesos,jpeach/mesos,chhsia0/mesos,reneploetz/mesos,reneploetz/mesos,Gilbert88/mesos,kaysoky/mesos,andschwa/mesos,Gilbert88/mesos,kaysoky/mesos,abudnik/mesos,chhsia0/mesos,dforsyth/mesos,chhsia0/mesos,reneploetz/mesos,abudnik/mesos,gsantovena/mesos,Gilbert88/mesos,andschwa/mesos,abudnik/mesos,andschwa/mesos,abudnik/mesos,chhsia0/mesos,kaysoky/mesos,andschwa/mesos,gsantovena/mesos,kaysoky/mesos,Gilbert88/mesos,gsantovena/mesos,chhsia0/mesos,dforsyth/mesos,reneploetz/mesos,andschwa/mesos,dforsyth/mesos,Gilbert88/mesos,abudnik/mesos,Gilbert88/mesos