rtl/debug: register dbg_en signal.

Make dbg_en registered to avoid any combinational loops.
tests: make sure that memory accesses can't restart execution.