Add sample for bad usage of volatile keyword
Fix read-modify-write with AtomicXXXX utility class.