write string cache entries before module definition when interning strings as required by some IE loader paths; fixes 17146
(cherry picked from commit 89bf2786e322323293f52917223aa24db7649951)