[LTC] Refactor gen_lazy_nativefunc_definition to a functor
Summary:
This commit refactorred gen_lazy_nativefunc_definition to GenLazyNativeFuncDefinition
such that it can utilize the native function context manager while accepting
additional parameters.
Test Plan:
azy_tensor_core/test/cpp/build/test_ptltc