Add atomicWriteIORef

For issue #16.