Fix inferred latch and remove some debugging.
Fix a few bugs

- Stale data would be written back when it didn't need to be
- Bogus assertion in thread_select_stage
- Inferred latches for output ring bus packet