The code in <functional> is not supported on reasonably old systems.

Revert "fixes #190 Use the locktree escalator lambda function API, remove"

This reverts commit 34666ecb9b2ebf04ea655bf05e86edb40241e786.