[PATCH] Clean up expand_fdtable() and expand_files()