Review report

core: PR #36188

🟠 Major

Avoid resetting SHA-256 dispatch when creating ECC contexts (src/ecc_context.cpp:32, head)

SHA256AutoDetect() rewrites the process-global Transform and related dispatch pointers before selecting an implementation and running its self-test. It runs for both signing and verification contexts, including contexts created after kernel::Context has initialized SHA-256. If another thread hashes at the same time, it can race with these writes and observe dispatch reset to the portable implementation. Initialize dispatch once before concurrent hashing, then install SHA256Transform without rerunning detection for each ECC context.