session-test: fix to work with the dummy TLS backend

do_property_tests() apparently didn't work with the dummy TLS backend,
half because of a glib bug, and half because of a session-test bug.
This fixes the session-test bug; the glib bug is fixed in glib master.