Mutex version of atomic reference.