Fixed issue with make_lambda

the lambda_env being shared might cause problems
in any future concurrent environment