st_size reports the wrong thing for /proc symlinks, so allocate space differently.