s3:net: add net_context_creds() helper function