s4:dsdb: Check errno to determine if crypt or crypt_r succeeded