Use interlocked operations ImeModule reference counting.