rpcrt4: Use interlocked functions to increment/decrement ref counts.