Ensure that we register with the session manager only once

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