use native atomic increment function on Solaris