libstd: Change all `~fn()`s to `proc`s in the standard library.

This makes `Cell`s no longer necessary in most cases.
auto merge of #10554 : pcwalton/rust/procify-libstd, r=pcwalton

This makes `Cell`s no longer necessary in most cases.

r? @alexcrichton