Move a handful of operations outside critical sections

These operations don't need to be in the critical section.

It may make a difference in some of the microbenchmarks that stress
the interlock...it's hard to tell for sure because they tend to bounce
around quite a bit in this test.