hw/9pfs: Fix unchecked strdup() by converting to g_strdup()