Safe publishing AtomicBoolean