Fix interrupt issue

If an interrupt came in the same cycle an IO read/write occured,
that instruction would be executed a second time when the thread
was restarted. Changed so it won't dispatch an interrupt the same
cycle any memory access instruction is retired.