[gnome-base/gvfs] add more performance fixes, backported from the master branch