OPENSSL_issetugid() as in the main branch.