add 'atomic_write' functions (transactional to be precise)'
TEST: unit tests for atomic_write{32,64}
Merge pull request #326 from reneme/atomic_write

Add atomic_write() functions to atomic.h