Fixing issue described in [ENG-10144#comment-16a38c06](https://linear.app/comm/issue/ENG-10144/investigate-wasm-memory-leaks#comment-16a38c06).
Tracked in [ENG-10183][https://linear.app/comm/issue/ENG-10183/fix-new-olmsession-usage-on-shared-worker).
We have a long-lived in-memory objects here, we need to free the memory only when clearing crypto store.
Depends on D14350