Tests: fix when running with CK_FORK=no
Tests: fix when running with CK_FORK=no

In order to run the tests under valgrind, we need to disable forking.
This revealed a couple of issues not exposed before.

Also, fix all the memory leaks found by valgrind.


Distrotech/libaccounts-glib,Distrotech/libaccounts-glib,Distrotech/libaccounts-glib,Distrotech/libaccounts-glib