Add CppFunction::makeFromBoxedKernel (#82268)
This allows creating `CppFunction` from a `c10::BoxedKernel` object,
and also cleans up the other `make[...]` functions for boxed kernels.
Pull Request resolved: https://github.com/pytorch/pytorch/pull/82268
Approved by: https://github.com/bdhirsh