s3:net: refactor getting of secdesc out of net_registry_getsd()