Better conditional for sync-atom.