ISPN-3599 CommitCommand with replayed PrepareCommand executes rollback and then commit
Cleanup the transaction completed code

* no need to check for ctx.isOriginLocal() twice
* guard log.tracef() with log.isTraceEnabled()
to avoid string creation