MFV r270196:

Illumos issue:
    5047 don't use atomic_*_nv if you discard the return value

MFC after:	2 weeks