Throw TransactionTimedOutException in case of a transaction processing time out

Related to #3830, details are there.
shouldn't we add this 'RETHROW_TRANSACTION_EXCEPTION' to other places too
like 'replicateTxnLog' method below