librustc: Add a hack to allow unboxed closures to achieve the `'static`

bound if possible.

Closes #16560.

r? @nikomatsakis