MFV r270193:

Illumos issues:
    5042 stop using deprecated atomic functions

MFC after:	2 weeks