top(1): Restructure printing of process states
This avoids the need to have separate buffers and calls to sprintf for various calls.