gdk-pixbuf: check for writable $out/.., closes #2115

Note I've changed the loaders.cache path in order to not clutter /lib. I've only tested this with baobab. It runs with icons, the loaders.cache is created correctly and I've managed to start a nix-shell as user.