Remove implicit capture of this
Remove implicit capture of this

GCC emits a deprecated warning when 'this' is implicitly captured by
value. Change the lambdas that were implicitly capturing to an explicit
capture.

emil-e/rapidcheck,emil-e/rapidcheck,emil-e/rapidcheck