uxtheme: Use atomic functions for reference counting.