[runtime] Fix the interlocked increment/decrement/add functions.