Attempt to work around MSVC lambda bug

@evanweaver please try this

[#74774412]