Switch frame ref-count to libatomic_ops.