check for the OSError that libnacl might throw if libsodium is no here
Merge pull request #18364 from thatch45/nacl_check

check for the OSError that libnacl might throw if libsodium is no here