Fix ICE generating debug info for unboxed closures

This closes issue #17021.