Added and tested support for hardware memory transactions.
Still not very optimized, but already 3-4 times faster than software-only STMX for short transactions.