Add FFI bindings for atomic operations