use register constraint instead of memory operand for riscv64 atomics