[TorchBind] Support using lambda function as TorchBind constructor (#47819)
Summary: Pull Request resolved: https://github.com/pytorch/pytorch/pull/47819
Reviewed By: wanchaol
Differential Revision: D24910065
Pulled By: gmagogsfm
fbshipit-source-id: ad5b4f67b0367e44fe486d31a060d9ad1e0cf568