s3-waf: add check for getspnam().