Allow use cpu_serial_kernel with void-lambda (#27370)
Summary:
https://github.com/pytorch/pytorch/pull/27271
Pull Request resolved: https://github.com/pytorch/pytorch/pull/27370
Differential Revision: D17763265
Pulled By: ifedan
fbshipit-source-id: d670560dfc555db529b18c01aa42f0ccb2127889