debug: fixup synthesis warnings.

Remove inferred latch and unused variables.