libstd: Remove many uses of `Cell` and change various `new`s

r? @alexcrichton