javascript: Read fields of ObjectBlock lazily
When linking a module with a large dependency footprint too much of the object files were forced during linking. This lead to a large amount of memory taken up by thunks which would never be forced
On the PartialDownsweep test this halves the memory required (from 25G to 13G).
Towards #25324