If I'm understanding correctly, you are proposing a protocol with security based on the assumption that no one will use a modified version of your client. This is not how software works; if it were, the blockchain itself would be a lot of unnecessary work.
That must involve some form of escrow or contracts. Between different alt-coins this is difficult to implement without a third party... Even if both users sign and send between them a transaction with a lock-time set some "minutes"?! in the future, check that all is OK within the time frame, and if not, broadcast immediately a transaction which consume the same input and send it to one-self... But that can hardly prevent both users to screw up the trade. So it's not impossible but not without a third party...
maxuser, there actually is a trustless way to trade across chains without the use of the third party; it's pretty clever. See the wiki entry:
https://en.bitcoin.it/wiki/Atomic_cross-chain_trading