... until the collector arrives ...
XSTM is an open source library that implements software transactional memory.
Speaking of STM, Simon Peyton Jones has written a great paper about implementing STM in Haskell, Beautiful concurrency.