* Restore dropped patches in the non-TLS branch of memory.c As discovered in #2002, the reintroduction of the "original" non-TLS version of memory.c as an alternate branch had inadvertently usedba1f91frather thana8002e2, thereby dropping the commits for #1450, #1468, #1501, #1504 and #1520.