Add a memory-backed my_tmpfile() implementation.