[ios] Fix weak objects implementation on Hermes (#21986)
[ios] Add the registry for shared objects (#17514)