Cache libproxy's factory

Avoid zombie processes from reading proxy settings.

https://bugzilla.gnome.org/show_bug.cgi?id=677561

Signed-off-by: Jared Jennings <jared@jaredjennings.org>