En masse cleanup part one.

1. Fix nwait so that it's a local variable and not a static variable, as
   per bug # 3103118.
2. Whitespace fixes.
3. Some tst_resm + tst_exit -> tst_brkm fixes.
4. Other fun simplifications.

Will test, take a break, and repeat after these short messages.

Signed-off-by: Garrett Cooper <yanegomi@gmail.com>
8 files changed