Move thread from lambda to pure function
Move thread from lambda to pure function

When using lambda expr for thread input in for-loop the loop integer
seemed to be randomly initialized in the lambda, i.e. some sort of race
condition.

andron/recorder