Fixed atomic correctness for Solaris functions used by ATOMIC_INC/ATOMIC_DEC