libcore: use unboxed closures in the fields of `FlatMap`