Add a test with a C++11 lambda.

This test currently fails. (Bryan Kate)
Support lambdas in twait blocks.

These restrictions are obsolete.