Add AtomicRef for safe mutable reference holding.