support lambdas in threads

@amw does this look good ?
I'll try processes next ...


`instance_variable_get`? I mean.. why? You never use that method in normal operation, it's for object inspecting and the like. Just expose that var through public method.