glib: add compatibility implementation for g_dir_make_tmp()