Refactor kNetworkIdentitySerialNumberBytes definition (#75413)

* Refactor kNetworkIdentitySerialNumberBytes definition

Named array instead of a compound literal: GCC emits the literal as a local ._anon_N symbol inside the inline variable's COMDAT group, which breaks linking ("defined in discarded section") when another object's copy of the group is kept.

* [pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci

---------

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
diff --git a/src/credentials/CHIPCert_Internal.h b/src/credentials/CHIPCert_Internal.h
index 0e1ef5b..bf7101d 100644
--- a/src/credentials/CHIPCert_Internal.h
+++ b/src/credentials/CHIPCert_Internal.h
@@ -31,9 +31,10 @@
 
 // Constants for Network (Client) Identities as per section 11.24 (Wi-Fi
 // Authentication with Per-Device Credentials) of the Matter spec.
-inline constexpr CharSpan kNetworkIdentityCN                = "*"_span;
-inline constexpr uint8_t kNetworkIdentitySerialNumber       = 1;
-inline constexpr ByteSpan kNetworkIdentitySerialNumberBytes = ByteSpan((uint8_t[1]){ kNetworkIdentitySerialNumber });
+inline constexpr CharSpan kNetworkIdentityCN                 = "*"_span;
+inline constexpr uint8_t kNetworkIdentitySerialNumber        = 1;
+inline constexpr uint8_t kNetworkIdentitySerialNumberArray[] = { kNetworkIdentitySerialNumber };
+inline constexpr ByteSpan kNetworkIdentitySerialNumberBytes  = ByteSpan(kNetworkIdentitySerialNumberArray);
 
 inline constexpr uint32_t kNetworkIdentityNotBeforeTime = 1;
 inline constexpr uint32_t kNetworkIdentityNotAfterTime  = kNullCertTime;